diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-01 09:25:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 09:25:55 (GMT) |
commit | 27f9491c60606460209c109fc8ad8a6dcfd02f79 (patch) | |
tree | d940076311f27f2a07a11bf23a8fd6ceaa4c27f2 /Objects | |
parent | 7f5afecfd74de7f2fbd6b0cc0cc58b12bb608a19 (diff) | |
download | cpython-27f9491c60606460209c109fc8ad8a6dcfd02f79.zip cpython-27f9491c60606460209c109fc8ad8a6dcfd02f79.tar.gz cpython-27f9491c60606460209c109fc8ad8a6dcfd02f79.tar.bz2 |
gh-105107: Remove PyCFunction_Call() function (#105181)
* Keep the function in the stable ABI.
* Add unit tests on PyCFunction_Call() since it remains supported in
the stable ABI.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/call.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/call.c b/Objects/call.c index 4658cf1..40eccef 100644 --- a/Objects/call.c +++ b/Objects/call.c @@ -380,11 +380,11 @@ PyObject_Call(PyObject *callable, PyObject *args, PyObject *kwargs) } -PyObject * +/* Function removed in the Python 3.13 API but kept in the stable ABI. */ +PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *callable, PyObject *args, PyObject *kwargs) { - PyThreadState *tstate = _PyThreadState_GET(); - return _PyObject_Call(tstate, callable, args, kwargs); + return PyObject_Call(callable, args, kwargs); } |