FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-139145: Fix tkinter event loop in interactive mode (GH-152257) by miss-islington · Pull Request #152293 · python/cpython · GitHub

Repository navigation

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

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-3ffda34-3.13
Jun 26, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-3ffda34-3.13

Conversation

miss-islington commented Jun 26, 2026 •
edited by bedevere-app Bot
Loading

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 merged commit fba87d7 into python:3.13 Jun 26, 2026
42 checks passed
miss-islington deleted the backport-3ffda34-3.13 branch June 26, 2026 15:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL