@@ -794,7 +794,7 @@ static PyType_Slot PyTclObject_Type_slots[] = { |
|
|
794 |
794 |
{Py_tp_dealloc, (destructor)PyTclObject_dealloc}, |
795 |
795 |
{Py_tp_repr, (reprfunc)PyTclObject_repr}, |
796 |
796 |
{Py_tp_str, (reprfunc)PyTclObject_str}, |
797 |
|
- {Py_tp_getattro, NULL}, |
|
797 |
+ {Py_tp_getattro, PyObject_GenericGetAttr}, |
798 |
798 |
{Py_tp_richcompare, PyTclObject_richcompare}, |
799 |
799 |
{Py_tp_getset, PyTclObject_getsetlist}, |
800 |
800 |
{0, 0} |
@@ -2831,11 +2831,6 @@ PyInit__tkinter(void) |
|
|
2831 |
2831 |
{ |
2832 |
2832 |
PyObject *m, *uexe, *cexe, *o; |
2833 |
2833 |
|
2834 |
|
-/* Due to cross platform compiler issues the slots must be filled |
2835 |
|
- * here. It's required for portability to Windows without requiring |
2836 |
|
- * C++. See xxxlimited.c*/ |
2837 |
|
-PyTclObject_Type_slots[3].pfunc = PyObject_GenericGetAttr; |
2838 |
|
- |
2839 |
2834 |
#ifdef WITH_THREAD |
2840 |
2835 |
tcl_lock = PyThread_allocate_lock(); |
2841 |
2836 |
if (tcl_lock == NULL) |