]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106084: Remove _PyObject_CallMethod() function (#106159)
authorVictor Stinner <vstinner@python.org>
Tue, 27 Jun 2023 23:34:37 +0000 (01:34 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Jun 2023 23:34:37 +0000 (01:34 +0200)
commit84caa3324aaefb900895de2f946607cfdbe1be70
treedb29f52d43d243cce40c9a9584d79ccd2484e1b6
parent6b5166fb12c4744544da4ee26ef437d025eb762a
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()
Include/cpython/abstract.h
Include/internal/pycore_call.h
Modules/_bisectmodule.c
Modules/_io/iobase.c
Modules/_io/textio.c
Modules/arraymodule.c
Objects/descrobject.c
Objects/methodobject.c
Python/pylifecycle.c