Skip to content

[3.13] gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097) #125111

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

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented 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.

(cherry picked from commit 65ce228)

…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 vstinner enabled auto-merge (squash) October 8, 2024 13:50
@bedevere-app bedevere-app bot added the topic-repl Related to the interactive shell label Oct 8, 2024
@vstinner vstinner merged commit 5df6a75 into python:3.13 Oct 8, 2024
38 checks passed
@vstinner vstinner deleted the site_pyrepl13 branch October 8, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-repl Related to the interactive shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant