]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-134300: Remove idlelib from the path of the IDLE user process (GH-152739...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 1 Jul 2026 17:01:41 +0000 (19:01 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2026 17:01:41 +0000 (17:01 +0000)
commit86b15cd320b3d1946ab9ad0c076f89c4f924195a
treeca22ab2122cd52cf346e4255df6b1508e426e6ad
parent4dde67c10a568861ebac42ebe143cf3879d8f329
[3.13] gh-134300: Remove idlelib from the path of the IDLE user process (GH-152739) (#152809)

gh-134300: Remove idlelib from the path of the IDLE user process (GH-152739)

The idlelib directory ends up on sys.path when idle.py is run as a script,
and it was passed to the user process, where it let user code import
idlelib submodules as top-level modules, such as "import help".
(cherry picked from commit 3f5491a09223f7371b4b4c92225e8dfdf1c989b7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/idlelib/idle_test/test_pyshell.py
Lib/idlelib/pyshell.py
Misc/NEWS.d/next/IDLE/2026-07-01-15-00-00.gh-issue-134300.iDlPaT.rst [new file with mode: 0644]