cpython: a36e60c5fee0 (original) (raw)

--- a/Python/getargs.c +++ b/Python/getargs.c @@ -1545,7 +1545,7 @@ PyArg_ValidateKeywordArguments(PyObject #define IS_END_OF_FORMAT(c) (c == '\0' || c == ';' || c == ':') static int -vgetargskeywords(PyObject *args, PyObject *keywords, const char *format, +vgetargskeywords(PyObject *args, PyObject *kwargs, const char *format, char **kwlist, va_list *p_va, int flags) { char msgbuf[512]; @@ -1555,7 +1555,7 @@ vgetargskeywords(PyObject *args, PyObjec int max = INT_MAX; int i, pos, len; int skip = 0;

@@ -1724,7 +1724,7 @@ vgetargskeywords(PyObject *args, PyObjec * fulfilled and no keyword args left, with no further * validation. XXX Maybe skip this in debug build ? */

@@ -1756,10 +1756,10 @@ vgetargskeywords(PyObject args, PyObjec } / make sure there are no extraneous keyword arguments */

@@ -1942,7 +1942,7 @@ find_keyword(PyObject *kwnames, PyObject static int vgetargskeywordsfast_impl(PyObject **args, Py_ssize_t nargs,

{ @@ -1953,7 +1953,7 @@ vgetargskeywordsfast_impl(PyObject **arg const char *msg; PyObject *keyword; int i, pos, len;

current_arg = NULL;

@@ -2048,7 +2048,7 @@ vgetargskeywordsfast_impl(PyObject **arg } } if (current_arg) {

@@ -2092,7 +2092,7 @@ vgetargskeywordsfast_impl(PyObject **arg * fulfilled and no keyword args left, with no further * validation. XXX Maybe skip this in debug build ? */

@@ -2105,11 +2105,11 @@ vgetargskeywordsfast_impl(PyObject **arg assert(IS_END_OF_FORMAT(*format) || (*format == '|') || (format == '$')); / make sure there are no extraneous keyword arguments */