Skip to content

gh-127802: Schedule removal of legacy tkinter variable trace methods in 3.17#152012

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:tkinter-trace-removal-3.17
Open

gh-127802: Schedule removal of legacy tkinter variable trace methods in 3.17#152012
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:tkinter-trace-removal-3.17

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jun 23, 2026

Copy link
Copy Markdown
Member

The :class:!tkinter.Variable methods trace_variable(), trace(), trace_vdelete() and trace_vinfo() have been deprecated since Python 3.14 (:gh:120220) and emit a DeprecationWarning. They wrap the Tcl trace variable/vdelete/vinfo commands, which were removed in Tcl 9.0, so they already raise TclError with Tk 9.

This schedules their removal for Python 3.17: the deprecation warnings now state the removal version, and a pending-removal-in-3.17 entry is added (it is included in the 3.16 "What's New" pending-removal section).

The methods are intentionally not rewired to the trace_add()/trace_remove()/trace_info() API; users should migrate to those.

🤖 Generated with Claude Code

…thods in 3.17

The tkinter.Variable methods trace_variable(), trace(), trace_vdelete()
and trace_vinfo(), deprecated since Python 3.14, are now scheduled for
removal in Python 3.17.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@read-the-docs-community

Copy link
Copy Markdown

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

@hugovk, can we land this in 3.15? These methods were deprecated in 3.14 without clear removal term, but they fail on Tk 9.0, which is now bundled in 3.15 on Windows and optionally on macOS.

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.

1 participant