bpo-37151: remove _PyCFunction_FastCallDict (GH-14269)
This commit is contained in:
parent
8713aa6dfb
commit
7e1a9aacff
|
@ -42,11 +42,6 @@ PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
|
||||||
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
|
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
|
||||||
|
|
||||||
#ifndef Py_LIMITED_API
|
#ifndef Py_LIMITED_API
|
||||||
PyAPI_FUNC(PyObject *) _PyCFunction_FastCallDict(PyObject *func,
|
|
||||||
PyObject *const *args,
|
|
||||||
Py_ssize_t nargs,
|
|
||||||
PyObject *kwargs);
|
|
||||||
|
|
||||||
PyAPI_FUNC(PyObject *) _PyCFunction_Vectorcall(PyObject *func,
|
PyAPI_FUNC(PyObject *) _PyCFunction_Vectorcall(PyObject *func,
|
||||||
PyObject *const *stack,
|
PyObject *const *stack,
|
||||||
size_t nargsf,
|
size_t nargsf,
|
||||||
|
|
|
@ -495,24 +495,6 @@ exit:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *
|
|
||||||
_PyCFunction_FastCallDict(PyObject *func,
|
|
||||||
PyObject *const *args, Py_ssize_t nargs,
|
|
||||||
PyObject *kwargs)
|
|
||||||
{
|
|
||||||
PyObject *result;
|
|
||||||
|
|
||||||
assert(func != NULL);
|
|
||||||
assert(PyCFunction_Check(func));
|
|
||||||
|
|
||||||
result = _PyMethodDef_RawFastCallDict(((PyCFunctionObject*)func)->m_ml,
|
|
||||||
PyCFunction_GET_SELF(func),
|
|
||||||
args, nargs, kwargs);
|
|
||||||
result = _Py_CheckFunctionResult(func, result, NULL);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
_PyMethodDef_RawFastCallKeywords(PyMethodDef *method, PyObject *self,
|
_PyMethodDef_RawFastCallKeywords(PyMethodDef *method, PyObject *self,
|
||||||
PyObject *const *args, Py_ssize_t nargs,
|
PyObject *const *args, Py_ssize_t nargs,
|
||||||
|
|
|
@ -5018,10 +5018,10 @@ do_call_core(PyThreadState *tstate, PyObject *func, PyObject *callargs, PyObject
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
C_TRACE(result, _PyCFunction_FastCallDict(func,
|
C_TRACE(result, _PyObject_FastCallDict(func,
|
||||||
&_PyTuple_ITEMS(callargs)[1],
|
&_PyTuple_ITEMS(callargs)[1],
|
||||||
nargs - 1,
|
nargs - 1,
|
||||||
kwdict));
|
kwdict));
|
||||||
Py_DECREF(func);
|
Py_DECREF(func);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1563,8 +1563,7 @@ class Frame(object):
|
||||||
if not caller:
|
if not caller:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if caller in ('_PyCFunction_FastCallDict',
|
if caller in ('_PyCFunction_Vectorcall',
|
||||||
'_PyCFunction_Vectorcall',
|
|
||||||
'cfunction_call_varargs'):
|
'cfunction_call_varargs'):
|
||||||
arg_name = 'func'
|
arg_name = 'func'
|
||||||
# Within that frame:
|
# Within that frame:
|
||||||
|
|
Loading…
Reference in New Issue