]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143070: Use "+" instead of "!" in automatically generated tkinter widget names...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 10 Jul 2026 16:36:12 +0000 (19:36 +0300)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2026 16:36:12 +0000 (19:36 +0300)
commitc59c95f7b42844266d635e6ae60cae0091d64b56
tree74eea2bce3d9289e1099128d5d23b40333bad4cb
parentf96c4279e95daac9b9c735cfb3895071fff323bf
gh-143070: Use "+" instead of "!" in automatically generated tkinter widget names (GH-151975)

The "!" prefix has a special meaning in the tag expressions of the
canvas and text widgets ("!", "&&", "||", "^" and parentheses), so an
automatically generated widget name could not be used as a tag.  "+" has
no special meaning there, nor in option database patterns or Tcl lists,
and a user is very unlikely to start an explicit name with it.
Lib/test/test_tkinter/test_misc.py
Lib/test/test_tkinter/test_text.py
Lib/test/test_tkinter/test_widgets.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2026-06-23-11-00-03.gh-issue-143070.fV5w7s.rst [new file with mode: 0644]