summaryrefslogtreecommitdiffstats
path: root/Python/clinic/Python-tokenize.c.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-11-08 12:23:50 (GMT)
committerGitHub <noreply@github.com>2024-11-08 12:23:50 (GMT)
commit061e50f196373d920c3eaa3718b9d0553914e006 (patch)
tree8121c12d8d17ccdd0b3a33dd7f3c93fb725f04df /Python/clinic/Python-tokenize.c.h
parentee0746af7d7cfc6cc25441726034e4fea4bcf7e5 (diff)
downloadcpython-061e50f196373d920c3eaa3718b9d0553914e006.zip
cpython-061e50f196373d920c3eaa3718b9d0553914e006.tar.gz
cpython-061e50f196373d920c3eaa3718b9d0553914e006.tar.bz2
gh-122943: Add the varpos parameter in _PyArg_UnpackKeywords (GH-126564)
Remove _PyArg_UnpackKeywordsWithVararg. Add comments for integer arguments of _PyArg_UnpackKeywords.
Diffstat (limited to 'Python/clinic/Python-tokenize.c.h')
-rw-r--r--Python/clinic/Python-tokenize.c.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/clinic/Python-tokenize.c.h b/Python/clinic/Python-tokenize.c.h
index 730fa8e..2a0d50b 100644
--- a/Python/clinic/Python-tokenize.c.h
+++ b/Python/clinic/Python-tokenize.c.h
@@ -49,7 +49,8 @@ tokenizeriter_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
int extra_tokens;
const char *encoding = NULL;
- fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 1, 1, argsbuf);
+ fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser,
+ /*minpos*/ 1, /*maxpos*/ 1, /*minkw*/ 1, /*varpos*/ 0, argsbuf);
if (!fastargs) {
goto exit;
}
@@ -80,4 +81,4 @@ skip_optional_kwonly:
exit:
return return_value;
}
-/*[clinic end generated code: output=dcd6ec48f06a092e input=a9049054013a1b77]*/
+/*[clinic end generated code: output=831a75133d4a5034 input=a9049054013a1b77]*/