Kaydet (Commit) 578d7ab1 authored tarafından Christian Heimes's avatar Christian Heimes

The changes to PyMethod_New and the removal of unbound methods breaks ctypes'…

The changes to PyMethod_New and the removal of unbound methods breaks ctypes' COMError on Windows. This patch doesn't address the problem but re-enables the import of _ctypes until somebody has time to fix it right. I've no time to dig into it. Also see http://bugs.python.org/issue1505
üst 2e0b7557
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment