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

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


https://hg.python.org/cpython/rev/a192cc5a63be
changeset:   94794:a192cc5a63be
branch:      3.4
parent:      94787:8fe15bf68522
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Mar 01 09:06:29 2015 +0200
summary:
  Issue #20204: Added the __module__ attribute to _tkinter classes.

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


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@
 
 Library
 -------
+
+- Issue #20204: Added the __module__ attribute to _tkinter classes.
+
 - Issue #23521: Corrected pure python implementation of timedelta division.
 
  * Eliminated OverflowError from timedelta * float for some floats;
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -2388,7 +2388,7 @@
 };
 
 static PyType_Spec Tktt_Type_spec = {
-    "tktimertoken",
+    "_tkinter.tktimertoken",
     sizeof(TkttObject),
     0,
     Py_TPFLAGS_DEFAULT,
@@ -2692,7 +2692,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