summaryrefslogtreecommitdiff
path: root/Include/methodobject.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-09 14:07:44 -0700
committerVictor Stinner <victor.stinner@gmail.com>2016-09-09 14:07:44 -0700
commitae8b69c410b83d92c6c35bbe342c3c2e92be6aa1 (patch)
treefa8de02f97c6831a0350d18c93e9aba25956187d /Include/methodobject.h
parent502893896a6b2b312654e5b5d75398c759d715e1 (diff)
downloadcpython-git-ae8b69c410b83d92c6c35bbe342c3c2e92be6aa1.tar.gz
Issue #27810: Add _PyCFunction_FastCallKeywords()
Use _PyCFunction_FastCallKeywords() in ceval.c: it allows to remove a lot of code from ceval.c which was only used to call C functions.
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r--Include/methodobject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 84a14978e1..1f4f06cff8 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -42,6 +42,11 @@ PyAPI_FUNC(PyObject *) _PyCFunction_FastCallDict(PyObject *func,
PyObject **args,
Py_ssize_t nargs,
PyObject *kwargs);
+
+PyAPI_FUNC(PyObject *) _PyCFunction_FastCallKeywords(PyObject *func,
+ PyObject **stack,
+ Py_ssize_t nargs,
+ PyObject *kwnames);
#endif
struct PyMethodDef {