Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.15] gh-139145: Fix tkinter event loop in interactive mode (GH-152257) - #152291

#152291
Merged
serhiy-storchaka merged 1 commit into
python:3.15python/cpython:3.15from
miss-islington:backport-3ffda34-3.15miss-islington/cpython:backport-3ffda34-3.15Copy head branch name to clipboard
Jun 26, 2026
Merged

[3.15] gh-139145: Fix tkinter event loop in interactive mode (GH-152257)#152291
serhiy-storchaka merged 1 commit into
python:3.15python/cpython:3.15from
miss-islington:backport-3ffda34-3.15miss-islington/cpython:backport-3ffda34-3.15Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

When a Tcl command running its own event loop (such as vwait or
wait_variable) was active and the user typed input on stdin, the event
loop kept spinning at 100% CPU. The stdin file handler is now removed as
soon as input becomes available.

Also fix gh-139816: an exception raised in a callback no longer stops the
event loop to wait for Enter on a Python built without readline; pending
callbacks keep running until input is actually available on stdin.
(cherry picked from commit 3ffda34)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: mdehoon mjldehoon@yahoo.com
Co-authored-by: Christopher Chavez chrischavez@gmx.us
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…-152257)

When a Tcl command running its own event loop (such as vwait or
wait_variable) was active and the user typed input on stdin, the event
loop kept spinning at 100% CPU.  The stdin file handler is now removed as
soon as input becomes available.

Also fix pythongh-139816: an exception raised in a callback no longer stops the
event loop to wait for Enter on a Python built without readline; pending
callbacks keep running until input is actually available on stdin.
(cherry picked from commit 3ffda34)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: mdehoon <mjldehoon@yahoo.com>
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka merged commit 52bdfcc into python:3.15 Jun 26, 2026
55 checks passed
@miss-islington
miss-islington deleted the backport-3ffda34-3.15 branch June 26, 2026 15: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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.