]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-75666: Fix a reference leak in tkinter event bindings (GH-151808)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 23 Jun 2026 03:59:25 +0000 (06:59 +0300)
committerGitHub <noreply@github.com>
Tue, 23 Jun 2026 03:59:25 +0000 (06:59 +0300)
commit3f09a175ad022ca7ccdbb8583a0c137d493533ef
tree658f474efa4cbe0bf59b6934fc345f70bc204d54
parent6920036f287480f7d39d6a4005803aeac27aff3f
gh-75666: Fix a reference leak in tkinter event bindings (GH-151808)

The Tcl commands created for event callbacks are now deleted when a
binding is replaced or unbound, instead of being leaked.
Lib/idlelib/idle_test/test_iomenu.py
Lib/test/test_tkinter/test_misc.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2026-06-20-15-00-00.gh-issue-75666.Kt9xQ2.rst [new file with mode: 0644]