Skip to content

[3.14] gh-153020: Fix the tkinter event hook with Tcl interpreters in other threads (GH-162581) - #162614

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-87e8ae1-3.14
Nov 25, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-87e8ae1-3.14

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member

The event hook used the thread state of the thread which created the first
Tcl interpreter, and crashed if that thread had exited. It now uses the
thread state of the thread which calls it. It is also no longer removed
when an interpreter is deleted in other thread while other interpreters
still exist, and its state is protected by a lock.
(cherry picked from commit 87e8ae1)

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

…ers in other threads (pythonGH-162581)

The event hook used the thread state of the thread which created the first
Tcl interpreter, and crashed if that thread had exited.  It now uses the
thread state of the thread which calls it.  It is also no longer removed
when an interpreter is deleted in other thread while other interpreters
still exist, and its state is protected by a lock.
(cherry picked from commit 87e8ae1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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