[Python-checkins] cpython (3.6): Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
serhiy.storchaka
python-checkins at python.org
Tue Oct 25 02:47:02 EDT 2016
https://hg.python.org/cpython/rev/603ac788ed27
changeset: 104688:603ac788ed27
branch: 3.6
parent: 104686:5784cc37b5f4
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue Oct 25 09:43:48 2016 +0300
summary:
Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix
for readability (was "`").
files:
Lib/tkinter/__init__.py | 4 ++--
Misc/NEWS | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -2261,9 +2261,9 @@
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
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -26,6 +26,9 @@
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 @@
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.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list