Skip to content

gh-140494: require that Tcl is built with thread support - #141241

Open
mdehoon wants to merge 1 commit into
python:mainfrom
mdehoon:tkinter_threads
Open

mdehoon wants to merge 1 commit into
python:mainfrom
mdehoon:tkinter_threads

Conversation

@mdehoon

@mdehoon mdehoon commented Nov 8, 2025 •

Copy link
Copy Markdown
Contributor

This PR modifies _tkinter.c to require that Tcl is built with thread support. It also modifies the documentation file Doc/library/tkinter.rst accordingly.

Note that this only affects Tcl 8.x, as Tcl 9.x no longer has the --disable-threads build option and is always thread-enabled.


📚 Documentation preview 📚: https://cpython-previews--141241.org.readthedocs.build/

@mdehoon

mdehoon commented Nov 8, 2025

Copy link
Copy Markdown
Contributor Author

Note: The compile-time test for TCL_MAJOR_VERSION < 9 is needed because the macOS tests use Tcl from homebrew, which provides Tcl 9.0.2.

@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 1, 2026
Comment thread Modules/_tkinter.c Resolved
@read-the-docs-community

read-the-docs-community Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

@serhiy-storchaka

Copy link
Copy Markdown
Member

Please refrain from frequent pushes. Only push when you are ready, preferably in a single commit.

@mdehoon

mdehoon commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

Please refrain from frequent pushes. Only push when you are ready, preferably in a single commit.

My apologies, my local repository somehow got out of sync with the remote one.
It's done now.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Jul 24, 2026
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 90 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Oct 26, 2026
@serhiy-storchaka serhiy-storchaka removed the stale Stale PR or inactive for long period of time. label Oct 26, 2026
@serhiy-storchaka

Copy link
Copy Markdown
Member

It is not stale, it waits for it's time.

@python-cla-bot

python-cla-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Remove the Tcl lock and the code for non-threaded Tcl.

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

Copy link
Copy Markdown
Member

It is time to drop support of Tcl without thread support. I updated the branch: resolved conflicts, updated comments, and added versionchanged and What's New entries. I also squashed the commits, because some of them were authored with your local address mdehoon@Michiels-MacBook-Air.local, which failed the CLA check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants