]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 25 Oct 2016 06:43:48 +0000 (09:43 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 25 Oct 2016 06:43:48 +0000 (09:43 +0300)
for readability (was "`").

Lib/tkinter/__init__.py
Misc/NEWS

index 99ad2a7c0111412abc3732a0d82c383379c803c3..25fe645a93c84653eaac10ab251205c486d07b0b 100644 (file)
@@ -2261,9 +2261,9 @@ class BaseWidget(Misc):
             count = master._last_child_ids.get(name, 0) + 1
             master._last_child_ids[name] = count
             if count == 1:
-                name = '`%s' % (name,)
+                name = '!%s' % (name,)
             else:
-                name = '`%s%d' % (name, count)
+                name = '!%s%d' % (name, count)
         self._name = name
         if master._w=='.':
             self._w = '.' + name
index 34b3b8afd3a5a56fa7b8e375c621911f7f991898..e5d77af5f4088ccd7b36721be82a676076cccff2 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -26,6 +26,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
+  for readability (was "`").
+
 - Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin
   a workaround to Tix library bug.
 
@@ -1339,6 +1342,9 @@ Library
   exposed on the API which are not implemented on GNU/Hurd. They would not
   work at runtime anyway.
 
+- Issue #27025: Generated names for Tkinter widgets are now more meanful
+  and recognizirable.
+
 - Issue #25455: Fixed crashes in repr of recursive ElementTree.Element and
   functools.partial objects.