diff options
author | Jeroen Demeyer <J.Demeyer@UGent.be> | 2019-09-11 13:01:01 +0200 |
---|---|---|
committer | Petr Viktorin <encukou@gmail.com> | 2019-09-11 12:01:01 +0100 |
commit | 7a6873cdb1f496447ac5d57ae457eacbb56b7972 (patch) | |
tree | a2a7e401399f18067c5b41f24f86d8deaf7f22c6 /Python/ceval.c | |
parent | 2d8d597bb8f882a7677db5a2739df0e617098634 (diff) | |
download | cpython-git-7a6873cdb1f496447ac5d57ae457eacbb56b7972.tar.gz |
bpo-37151: remove special case for PyCFunction from PyObject_Call (GH-14684)
bpo-37151: remove special case for PyCFunction from PyObject_Call
Alse, make the undocumented function PyCFunction_Call an alias
of PyObject_Call and deprecate it.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 01e2a1b966..964ce13336 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -5001,7 +5001,7 @@ do_call_core(PyThreadState *tstate, PyObject *func, PyObject *callargs, PyObject PyObject *result; if (PyCFunction_Check(func)) { - C_TRACE(result, PyCFunction_Call(func, callargs, kwdict)); + C_TRACE(result, PyObject_Call(func, callargs, kwdict)); return result; } else if (Py_TYPE(func) == &PyMethodDescr_Type) { |