]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134300: Remove idlelib from the path of the IDLE user process (#152739)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 1 Jul 2026 16:35:57 +0000 (19:35 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2026 16:35:57 +0000 (12:35 -0400)
commit3f5491a09223f7371b4b4c92225e8dfdf1c989b7
tree5d3f2a3ed1fd3a31ca032c11adb73de763a17b29
parentea7619faeacf310ba1b2ef41ad07966ce2aae11f
gh-134300: Remove idlelib from the path of the IDLE user process (#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".
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]