diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-27 23:34:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 23:34:37 (GMT) |
commit | 84caa3324aaefb900895de2f946607cfdbe1be70 (patch) | |
tree | db29f52d43d243cce40c9a9584d79ccd2484e1b6 /Modules/arraymodule.c | |
parent | 6b5166fb12c4744544da4ee26ef437d025eb762a (diff) | |
download | cpython-84caa3324aaefb900895de2f946607cfdbe1be70.zip cpython-84caa3324aaefb900895de2f946607cfdbe1be70.tar.gz cpython-84caa3324aaefb900895de2f946607cfdbe1be70.tar.bz2 |
gh-106084: Remove _PyObject_CallMethod() function (#106159)
Remove the following private functions from the public C API:
* _Py_CheckFunctionResult()
* _PyObject_CallMethod()
* _PyObject_CallMethodId()
* _PyObject_CallMethodIdNoArgs()
* _PyObject_CallMethodIdObjArgs()
* _PyObject_CallMethodIdOneArg()
* _PyObject_MakeTpCall()
* _PyObject_VectorcallMethodId()
* _PyStack_AsDict()
Move these functions to the internal C API (pycore_call.h).
No longer export the following functions:
* _PyObject_Call()
* _PyObject_CallMethod()
* _PyObject_CallMethodId()
* _PyObject_CallMethodIdObjArgs()
* _PyObject_Call_Prepend()
* _PyObject_FastCallDictTstate()
* _PyStack_AsDict()
The following functions are still exported for stdlib shared
extensions:
* _Py_CheckFunctionResult()
* _PyObject_MakeTpCall()
Mark the following internal functions as extern:
* _PyStack_UnpackDict()
* _PyStack_UnpackDict_Free()
* _PyStack_UnpackDict_FreeNoDecRef()
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 8132689..15f7766 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -9,6 +9,7 @@ #define PY_SSIZE_T_CLEAN #include "Python.h" +#include "pycore_call.h" // _PyObject_CallMethod() #include "pycore_moduleobject.h" // _PyModule_GetState() #include "pycore_bytesobject.h" // _PyBytes_Repeat #include "structmember.h" // PyMemberDef |