https://github.com/python/cpython/commit/83bd8689aa439166b18667cb7ace5fbd88515a47 commit: 83bd8689aa439166b18667cb7ace5fbd88515a47 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: zware <[email protected]> date: 2025-11-12T22:44:01Z summary:
[3.13] gh-124111: Fix TCL 9 thread detection (GH-141483) (cherry picked from commit dc0987080ed66c662e8e0b24cdb8c179817bd697) Co-authored-by: Michael Cho <[email protected]> files: A Misc/NEWS.d/next/Library/2025-11-12-15-42-47.gh-issue-124111.hTw4OE.rst M Modules/_tkinter.c diff --git a/Misc/NEWS.d/next/Library/2025-11-12-15-42-47.gh-issue-124111.hTw4OE.rst b/Misc/NEWS.d/next/Library/2025-11-12-15-42-47.gh-issue-124111.hTw4OE.rst new file mode 100644 index 00000000000000..8436cd2415dbd6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-11-12-15-42-47.gh-issue-124111.hTw4OE.rst @@ -0,0 +1,2 @@ +Updated Tcl threading configuration in :mod:`_tkinter` to assume that +threads are always available in Tcl 9 and later. diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 487bde30f40f41..38e6afdea877d3 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -586,8 +586,12 @@ Tkapp_New(const char *screenName, const char *className, v->interp = Tcl_CreateInterp(); v->wantobjects = wantobjects; +#if TCL_MAJOR_VERSION >= 9 + v->threaded = 1; +#else v->threaded = Tcl_GetVar2Ex(v->interp, "tcl_platform", "threaded", TCL_GLOBAL_ONLY) != NULL; +#endif v->thread_id = Tcl_GetCurrentThread(); v->dispatching = 0; v->trace = NULL; _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
