aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-09 12:36:44 -0700
committerVictor Stinner <victor.stinner@gmail.com>2016-09-09 12:36:44 -0700
commitd8735720955557d8056bc1fca41ad1c3b48aa63c (patch)
tree87c04970bcbbd4ff7fd9b3c4ff5f138d98b7dc1e /Include/funcobject.h
parentmerge 3.5 (#28051) (diff)
downloadcpython-d8735720955557d8056bc1fca41ad1c3b48aa63c.tar.gz
cpython-d8735720955557d8056bc1fca41ad1c3b48aa63c.tar.bz2
cpython-d8735720955557d8056bc1fca41ad1c3b48aa63c.zip
Add _PyObject_FastCallKeywords()
Issue #27830: Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments. Other changes: * Cleanup call_function() and fast_function() (ex: rename nk to nkwargs) * Remove now useless do_call(), replaced with _PyObject_FastCallKeywords()
Diffstat (limited to 'Include/funcobject.h')
-rw-r--r--Include/funcobject.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/funcobject.h b/Include/funcobject.h
index 6b89c86936e..77bb8c39aeb 100644
--- a/Include/funcobject.h
+++ b/Include/funcobject.h
@@ -64,6 +64,12 @@ PyAPI_FUNC(PyObject *) _PyFunction_FastCallDict(
PyObject **args,
Py_ssize_t nargs,
PyObject *kwargs);
+
+PyAPI_FUNC(PyObject *) _PyFunction_FastCallKeywords(
+ PyObject *func,
+ PyObject **stack,
+ Py_ssize_t nargs,
+ PyObject *kwnames);
#endif
/* Macros for direct access to these values. Type checks are *not*