Mercurial > cpython-lru_cache-weakref
diff Include/methodobject.h @ 81073:6a56eaa5e5fb
Revert back PyCFunction_New macro. Keep PyCFunction_NewEx usage in python core modules (#15422)
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Wed, 26 Dec 2012 22:52:04 +0200 |
| parents | 3a86a3f1d89a |
| children |
line wrap: on
line diff
--- a/Include/methodobject.h Wed Dec 26 16:48:26 2012 +0100 +++ b/Include/methodobject.h Wed Dec 26 22:52:04 2012 +0200 @@ -46,7 +46,7 @@ }; typedef struct PyMethodDef PyMethodDef; -PyAPI_FUNC(PyObject *) PyCFunction_New(PyMethodDef *, PyObject *); +#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL) PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *, PyObject *);
