Skip to content

[3.13] gh-134300: Remove idlelib from the path of the IDLE user process (GH-152739)#152809

Merged
terryjreedy merged 1 commit into
python:3.13from
miss-islington:backport-3f5491a-3.13
Jul 1, 2026
Merged

[3.13] gh-134300: Remove idlelib from the path of the IDLE user process (GH-152739)#152809
terryjreedy merged 1 commit into
python:3.13from
miss-islington:backport-3f5491a-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

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 3f5491a)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

pythonGH-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 3f5491a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@terryjreedy terryjreedy enabled auto-merge (squash) July 1, 2026 16:46
@terryjreedy terryjreedy merged commit 86b15cd into python:3.13 Jul 1, 2026
42 checks passed
@miss-islington miss-islington deleted the backport-3f5491a-3.13 branch July 1, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants