[Python-checkins] cpython: Issue #15721: apply PEP 384 Refactoring to tkinter module.
andrew.svetlov
python-checkins at python.org
Tue Oct 30 21:49:30 CET 2012
http://hg.python.org/cpython/rev/4eb6e07e8171
changeset: 80062:4eb6e07e8171
parent: 80060:812f5c379188
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Tue Oct 30 22:49:16 2012 +0200
summary:
Issue #15721: apply PEP 384 Refactoring to tkinter module.
files:
Modules/_tkinter.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -794,7 +794,7 @@
{Py_tp_dealloc, (destructor)PyTclObject_dealloc},
{Py_tp_repr, (reprfunc)PyTclObject_repr},
{Py_tp_str, (reprfunc)PyTclObject_str},
- {Py_tp_getattro, NULL},
+ {Py_tp_getattro, PyObject_GenericGetAttr},
{Py_tp_richcompare, PyTclObject_richcompare},
{Py_tp_getset, PyTclObject_getsetlist},
{0, 0}
@@ -2831,11 +2831,6 @@
{
PyObject *m, *uexe, *cexe, *o;
- /* Due to cross platform compiler issues the slots must be filled
- * here. It's required for portability to Windows without requiring
- * C++. See xxxlimited.c*/
- PyTclObject_Type_slots[3].pfunc = PyObject_GenericGetAttr;
-
#ifdef WITH_THREAD
tcl_lock = PyThread_allocate_lock();
if (tcl_lock == NULL)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list