diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-01-17 00:40:01 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-01-17 00:40:01 (GMT) |
commit | 29d39cc8f50f314a62226d69ac014cbd0bd66792 (patch) | |
tree | 62bc43421910c3a85c6599d9077b9e4b1e571bfd /Include | |
parent | 6518a93cb1dd9ff971a7455eb1622a4c89da4bb4 (diff) | |
download | cpython-29d39cc8f50f314a62226d69ac014cbd0bd66792.zip cpython-29d39cc8f50f314a62226d69ac014cbd0bd66792.tar.gz cpython-29d39cc8f50f314a62226d69ac014cbd0bd66792.tar.bz2 |
Add _PyArg_NoStackKeywords() helper function
Issue #29286. Similar to _PyArg_NoKeywords(), but expects a tuple of keyword
names, instead of a dict.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/modsupport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h index 5c21f98..e6713e2 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -48,7 +48,8 @@ PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...); PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...); #endif #ifndef Py_LIMITED_API -PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kw); +PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kwargs); +PyAPI_FUNC(int) _PyArg_NoStackKeywords(const char *funcname, PyObject *kwnames); PyAPI_FUNC(int) _PyArg_NoPositional(const char *funcname, PyObject *args); PyAPI_FUNC(int) PyArg_VaParse(PyObject *, const char *, va_list); |