]> granicus.if.org Git - python/commitdiff
The changes to PyMethod_New and the removal of unbound methods breaks ctypes' COMErro...
authorChristian Heimes <christian@cheimes.de>
Tue, 27 Nov 2007 13:05:10 +0000 (13:05 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 27 Nov 2007 13:05:10 +0000 (13:05 +0000)
Modules/_ctypes/_ctypes.c

index 05a9fca4bf6d90a22a225b8d9285240d72290f1b..cf0cb9a62e4d2738759351703f8318857ea0f780 100644 (file)
@@ -4624,12 +4624,13 @@ create_comerror(void)
                PyObject *meth;
                if (func == NULL)
                        return -1;
-               meth = PyMethod_New(func, NULL, ComError);
+               /*meth = PyMethod_New(func, NULL, ComError);
                Py_DECREF(func);
                if (meth == NULL)
-                       return -1;
-               PyDict_SetItemString(dict, methods->ml_name, meth);
-               Py_DECREF(meth);
+                       return -1;*/
+               PyDict_SetItemString(dict, methods->ml_name, func);
+               /*Py_DECREF(meth);*/
+               Py_DECREF(func);
                ++methods;
        }