[Python-checkins] cpython (merge 3.4 -> default): Issue #20204: Added the __module__ attribute to _tkinter classes.

serhiy.storchaka python-checkins at python.org
Sun Mar 1 09:04:28 CET 2015


https://hg.python.org/cpython/rev/3244142eeafb
changeset:   94795:3244142eeafb
parent:      94792:cfdba57d0070
parent:      94794:a192cc5a63be
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Mar 01 09:07:10 2015 +0200
summary:
  Issue #20204: Added the __module__ attribute to _tkinter classes.

files:
  Misc/NEWS          |  2 ++
  Modules/_tkinter.c |  4 ++--
  2 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,8 @@
 Library
 -------
 
+- Issue #20204: Added the __module__ attribute to _tkinter classes.
+
 - Issue #19980: Improved help() for non-recognized strings.  help('') now
   shows the help on str.  help('help') now shows the help on help().
   Original patch by Mark Lawrence.
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -2409,7 +2409,7 @@
 };
 
 static PyType_Spec Tktt_Type_spec = {
-    "tktimertoken",
+    "_tkinter.tktimertoken",
     sizeof(TkttObject),
     0,
     Py_TPFLAGS_DEFAULT,
@@ -2713,7 +2713,7 @@
 
 
 static PyType_Spec Tkapp_Type_spec = {
-    "tkapp",
+    "_tkinter.tkapp",
     sizeof(TkappObject),
     0,
     Py_TPFLAGS_DEFAULT,

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list