Skip to content

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.

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 vstinner added the needs backport to 3.13 bugs and security fixes label Oct 8, 2024
@vstinner vstinner merged commit 65ce228 into python:main Oct 8, 2024
38 checks passed
@vstinner vstinner deleted the site_pyrepl branch October 8, 2024 13:48
@miss-islington-app
Copy link

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 65ce228d63878d8b6d0005f682e89ad9d5289c4b 3.13

@bedevere-app
Copy link

bedevere-app bot commented Oct 8, 2024

GH-125111 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Oct 8, 2024
vstinner added a commit to vstinner/cpython that referenced this pull request 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 pull request 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)
efimov-mikhail pushed a commit to efimov-mikhail/cpython that referenced this pull request 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

Labels

topic-repl Related to the interactive shell

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants