mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-37151: remove _PyFunction_FastCallDict (GH-13864)
This commit is contained in:
parent
d8f336fdc1
commit
59543347d1
3 changed files with 1 additions and 106 deletions
|
@ -622,17 +622,6 @@ func_traverse(PyFunctionObject *f, visitproc visit, void *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
function_call(PyObject *func, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
PyObject **stack;
|
||||
Py_ssize_t nargs;
|
||||
|
||||
stack = _PyTuple_ITEMS(args);
|
||||
nargs = PyTuple_GET_SIZE(args);
|
||||
return _PyFunction_FastCallDict(func, stack, nargs, kwargs);
|
||||
}
|
||||
|
||||
/* Bind a function to an object */
|
||||
static PyObject *
|
||||
func_descr_get(PyObject *func, PyObject *obj, PyObject *type)
|
||||
|
@ -659,7 +648,7 @@ PyTypeObject PyFunction_Type = {
|
|||
0, /* tp_as_sequence */
|
||||
0, /* tp_as_mapping */
|
||||
0, /* tp_hash */
|
||||
function_call, /* tp_call */
|
||||
PyVectorcall_Call, /* tp_call */
|
||||
0, /* tp_str */
|
||||
0, /* tp_getattro */
|
||||
0, /* tp_setattro */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue