diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-08-24 22:29:32 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-08-24 22:29:32 (GMT) |
commit | 577e1f8cb41b76ea763910a47abf42a1952ddec3 (patch) | |
tree | c813887a0af4c5b7312b2e835677546584c067ea /Include/funcobject.h | |
parent | 53868aaabb154c11bf666b31662bb4ae8bc6ec79 (diff) | |
download | cpython-577e1f8cb41b76ea763910a47abf42a1952ddec3.zip cpython-577e1f8cb41b76ea763910a47abf42a1952ddec3.tar.gz cpython-577e1f8cb41b76ea763910a47abf42a1952ddec3.tar.bz2 |
Add _PyObject_FastCallKeywords()
Issue #27830: Similar to _PyObject_FastCallDict(), but keyword arguments are
also passed in the same C array than positional arguments, rather than being
passed as a Python dict.
Diffstat (limited to 'Include/funcobject.h')
-rw-r--r-- | Include/funcobject.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/funcobject.h b/Include/funcobject.h index 6b89c86..5aff632 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, + Py_ssize_t nkwargs); #endif /* Macros for direct access to these values. Type checks are *not* |