summaryrefslogtreecommitdiff
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-06-18 13:05:41 +0200
committerInada Naoki <songofacandy@gmail.com>2019-06-18 20:05:41 +0900
commit59543347d12a7717235f941e7fd363d4df92984a (patch)
treee1f2ba54fe86cf9010bb30d997839073e7dae4bd /Objects/funcobject.c
parentd8f336fdc10decdd82d3bc81a63aea8be149c0c8 (diff)
downloadcpython-git-59543347d12a7717235f941e7fd363d4df92984a.tar.gz
bpo-37151: remove _PyFunction_FastCallDict (GH-13864)
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index df5cc2d3f5..a65c1f4a55 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -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 */