diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-27 13:05:10 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-27 13:05:10 (GMT) |
commit | 578d7ab1e964e1e9f783560bf191c4d145305b62 (patch) | |
tree | 055a7c8ed28a5b97cffb555c642e0d8d6322277c /Modules | |
parent | 2e0b7557b19293223cfd4f5f21ae5d80ccc55bbd (diff) | |
download | cpython-578d7ab1e964e1e9f783560bf191c4d145305b62.zip cpython-578d7ab1e964e1e9f783560bf191c4d145305b62.tar.gz cpython-578d7ab1e964e1e9f783560bf191c4d145305b62.tar.bz2 |
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
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 05a9fca4..cf0cb9a 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -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; } |