summaryrefslogtreecommitdiffstats
path: root/Include/abstract.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-08-24 23:04:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-08-24 23:04:14 (GMT)
commit3f1057a4b62d8c94ae77f34f950b74a45499b218 (patch)
treecb4815a4176534216b519be17cfe84b10ce74b54 /Include/abstract.h
parentf7507dd3e8ec84fe025c0ba82a9150275e2af9d9 (diff)
downloadcpython-3f1057a4b62d8c94ae77f34f950b74a45499b218.zip
cpython-3f1057a4b62d8c94ae77f34f950b74a45499b218.tar.gz
cpython-3f1057a4b62d8c94ae77f34f950b74a45499b218.tar.bz2
method_call() and slot_tp_new() now uses fast call
Issue #27841: Add _PyObject_Call_Prepend() helper function to prepend an argument to existing arguments to call a function. This helper uses fast calls. Modify method_call() and slot_tp_new() to use _PyObject_Call_Prepend().
Diffstat (limited to 'Include/abstract.h')
-rw-r--r--Include/abstract.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 474d746..ebad84b 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -309,6 +309,10 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
Py_ssize_t nargs,
Py_ssize_t nkwargs);
+ PyAPI_FUNC(PyObject *) _PyObject_Call_Prepend(PyObject *func,
+ PyObject *obj, PyObject *args,
+ PyObject *kwargs);
+
PyAPI_FUNC(PyObject *) _Py_CheckFunctionResult(PyObject *func,
PyObject *result,
const char *where);