mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
gh-106023: Remove _PyObject_FastCall() function (#106265)
This commit is contained in:
parent
0b51463862
commit
2efdd2a14e
7 changed files with 13 additions and 51 deletions
|
|
@ -26,23 +26,6 @@ fastcall_args(PyObject *args, PyObject ***stack, Py_ssize_t *nargs)
|
|||
}
|
||||
|
||||
|
||||
static PyObject *
|
||||
test_pyobject_fastcall(PyObject *self, PyObject *args)
|
||||
{
|
||||
PyObject *func, *func_args;
|
||||
PyObject **stack;
|
||||
Py_ssize_t nargs;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "OO", &func, &func_args)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (fastcall_args(func_args, &stack, &nargs) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
return _PyObject_FastCall(func, stack, nargs);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
test_pyobject_fastcalldict(PyObject *self, PyObject *args)
|
||||
{
|
||||
|
|
@ -259,7 +242,6 @@ _testcapi_has_vectorcall_flag_impl(PyObject *module, PyTypeObject *type)
|
|||
}
|
||||
|
||||
static PyMethodDef TestMethods[] = {
|
||||
{"pyobject_fastcall", test_pyobject_fastcall, METH_VARARGS},
|
||||
{"pyobject_fastcalldict", test_pyobject_fastcalldict, METH_VARARGS},
|
||||
{"pyobject_vectorcall", test_pyobject_vectorcall, METH_VARARGS},
|
||||
{"function_setvectorcall", function_setvectorcall, METH_O},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue