summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-02-06 10:41:46 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2017-02-06 10:41:46 +0200
commit54ab9ca906471f8a49e22c7f85d4f34c2ef7212c (patch)
treee52219261fbd532e701813327faf7dc4c035aa5e /Python
parent1ebed331c127c8ca4a279c5121cfd4a9de3cfda8 (diff)
downloadcpython-54ab9ca906471f8a49e22c7f85d4f34c2ef7212c.tar.gz
Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and
_PyArg_NoPositional() now are macros.
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 952a662ecf..8cb672d6ab 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -2446,6 +2446,10 @@ _PyArg_UnpackStack(PyObject **args, Py_ssize_t nargs, const char *name,
}
+#undef _PyArg_NoKeywords
+#undef _PyArg_NoStackKeywords
+#undef _PyArg_NoPositional
+
/* For type constructors that don't take keyword args
*
* Sets a TypeError and returns 0 if the args/kwargs is