Message387120
Oh, it's not listed by Doc/data/stable_abi.dat and so not checked by Tools/scripts/stable_abi.py.
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:28 | vstinner | set | recipients:
+ vstinner, petr.viktorin |
2021-02-16 16:27:28 | vstinner | set | messageid: <1613492848.35.0.934430538851.issue43239@roundup.psfhosted.org> |
2021-02-16 16:27:28 | vstinner | link | issue43239 messages |
2021-02-16 16:27:28 | vstinner | create | |
|