mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #15422: get rid of PyCFunction_New macro
This commit is contained in:
parent
914ab8420e
commit
3ba3a3ee56
9 changed files with 20 additions and 23 deletions
|
@ -741,7 +741,7 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
|||
wr = PyWeakref_NewRef((PyObject *) self, NULL);
|
||||
if (wr == NULL)
|
||||
goto err;
|
||||
self->wr_callback = PyCFunction_New(&wr_callback_def, wr);
|
||||
self->wr_callback = PyCFunction_NewEx(&wr_callback_def, wr, NULL);
|
||||
Py_DECREF(wr);
|
||||
if (self->wr_callback == NULL)
|
||||
goto err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue