-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
The site
module must not load _pyrepl
if PYTHON_BASIC_REPL
env var is set
#125096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
topic-repl
Related to the interactive shell
Comments
_pyrepl
if PYTHON_BASIC_REPL is set_pyrepl
if PYTHON_BASIC_REPL
env var is set
_pyrepl
if PYTHON_BASIC_REPL
env var is setsite
module must not load _pyrepl
if PYTHON_BASIC_REPL
env var is set
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Oct 8, 2024
If the PYTHON_BASIC_REPL environment variable is set, the site module no longer loads the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Oct 8, 2024
If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Oct 8, 2024
If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Oct 8, 2024
If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case.
vstinner
added a commit
that referenced
this issue
Oct 8, 2024
If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Oct 8, 2024
…ython#125097) If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case. (cherry picked from commit 65ce228)
vstinner
added a commit
that referenced
this issue
Oct 8, 2024
…125097) (#125111) gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097) If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case. (cherry picked from commit 65ce228)
Can this be closed? |
Right, it's fixed, I close the PR. |
efimov-mikhail
pushed a commit
to efimov-mikhail/cpython
that referenced
this issue
Oct 9, 2024
…ython#125097) If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Even if the new REPL is disabled by setting PYTHON_BASIC_REPL=1 env var, the site module still loads it. I propose to make sure that it's not loaded in this case.
Moreover, PYTHON_BASIC_REPL should be ignored if -E or -I command line options are used.
Linked PRs
The text was updated successfully, but these errors were encountered: