]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097)
authorVictor Stinner <vstinner@python.org>
Tue, 8 Oct 2024 13:48:40 +0000 (15:48 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 13:48:40 +0000 (15:48 +0200)
commit65ce228d63878d8b6d0005f682e89ad9d5289c4b
tree64589c787d33f19485b60e9c4b5bdec9416e0c6b
parent5967dd8a4de60a418de84d1d1d9efc063ad12c47
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.
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]