summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-30 09:46:43 (GMT)
committerGitHub <noreply@github.com>2023-06-30 09:46:43 (GMT)
commit2efdd2a14e5036ba88f95f68e1f006d2ef08249e (patch)
tree0aec4850bbf44afdc225d333dcfca1d188a9bdad /Modules
parent0b51463862798d3124f542a076e02ea3759551a4 (diff)
downloadcpython-2efdd2a14e5036ba88f95f68e1f006d2ef08249e.zip
cpython-2efdd2a14e5036ba88f95f68e1f006d2ef08249e.tar.gz
cpython-2efdd2a14e5036ba88f95f68e1f006d2ef08249e.tar.bz2
gh-106023: Remove _PyObject_FastCall() function (#106265)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testcapi/vectorcall.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/Modules/_testcapi/vectorcall.c b/Modules/_testcapi/vectorcall.c
index dcbc973..4935fd1 100644
--- a/Modules/_testcapi/vectorcall.c
+++ b/Modules/_testcapi/vectorcall.c
@@ -27,23 +27,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)
{
PyObject *func, *func_args, *kwargs;
@@ -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},