Skip to content

bpython don't like "__main__" #959

Closed

Description

@o101010

Hi,

I use bpython as replacement for the standart python's REPL (thanks linux's alias !). I try to start a script with bpython by using command like bpython script.py but I have no output.

After some test, I discover that it come from the test if __name__ == "__main__" os always false. It's due to the fact that name is "console" with bpython .

Activity

  1. added this to the release-0.23 milestone on May 2, 2022
  2. added a commit that references this issue on Feb 25, 2026
    14669c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions