]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097) (#125111)
authorVictor Stinner <vstinner@python.org>
Tue, 8 Oct 2024 14:20:05 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 14:20:05 +0000 (14:20 +0000)
commit5df6a756a56ff77eb9341de5e3764e582ef3fcf0
tree2ebeeed5dcb731b4fd0829955179ffb315365860
parent0a63c6603590f339c06e4305e8e6857d702788a9
[3.13] gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#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 65ce228d63878d8b6d0005f682e89ad9d5289c4b)
Lib/site.py
Lib/test/test_pyrepl/test_pyrepl.py
Misc/NEWS.d/next/Library/2024-10-08-13-28-22.gh-issue-125096.Vz0W5g.rst [new file with mode: 0644]