]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:03:16 +0000 (19:03 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2026 17:03:16 +0000 (17:03 +0000)
commitf128daae7ee161073d2ecca4da1c19552e0f2a4a
tree5b51dffb7d6b3226c28434fb8a8af2752607d663
parentca453240de18c116f1bed7511048f24efc97b671
[3.14] gh-134300: Remove idlelib from the path of the IDLE user process (GH-152739) (#152808)

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]