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.
This commit is contained in:
Jeroen Demeyer 2019-09-11 13:01:01 +02:00 committed by Petr Viktorin
parent 2d8d597bb8
commit 7a6873cdb1
6 changed files with 47 additions and 66 deletions

View file

@ -1564,7 +1564,7 @@ class Frame(object):
return False
if (caller.startswith('cfunction_vectorcall_') or
caller == 'cfunction_call_varargs'):
caller == 'cfunction_call'):
arg_name = 'func'
# Within that frame:
# "func" is the local containing the PyObject* of the