Skip to content

[3.14] gh-162647: Fix tkinter mainloop() with Tcl interpreters in different threads (GH-162649) - #162685

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-0a1d601-3.14
Nov 26, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-0a1d601-3.14

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

quit() now stops only the mainloop() of its interpreter, and wakes it up if
it is called from other thread. An exception raised in a callback is now
only raised by an event loop in the same thread.
(cherry picked from commit 0a1d601)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

…in different threads (pythonGH-162649)

quit() now stops only the mainloop() of its interpreter, and wakes it up if
it is called from other thread.  An exception raised in a callback is now
only raised by an event loop in the same thread.
(cherry picked from commit 0a1d601)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) November 26, 2026 13:12
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) November 26, 2026 13:18
@serhiy-storchaka
serhiy-storchaka merged commit 24c7bbf into python:3.14 Nov 26, 2026
51 checks passed
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.

1 participant