This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients petr.viktorin, vstinner
Date 2021-02-16.16:27:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oh, it's not listed by Doc/data/stable_abi.dat and so not checked by Tools/scripts/

It's implemented explicitly as a function only for the stable ABI:

PyObject *
PyCFunction_New(PyMethodDef *ml, PyObject *self)
    return PyCFunction_NewEx(ml, self, NULL);

So yeah, it should be exported.

By the way, I would suggest to move "#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL)" to Include/cpython/methodobject.h to clarify that the limited C API should call "PyCFunction_New()" and not call "PyCFunction_NewEx()".
Date User Action Args
2021-02-16 16:27:28vstinnersetrecipients: + vstinner, petr.viktorin
2021-02-16 16:27:28vstinnersetmessageid: <>
2021-02-16 16:27:28vstinnerlinkissue43239 messages
2021-02-16 16:27:28vstinnercreate