From 061e50f196373d920c3eaa3718b9d0553914e006 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 8 Nov 2024 14:23:50 +0200 Subject: gh-122943: Add the varpos parameter in _PyArg_UnpackKeywords (GH-126564) Remove _PyArg_UnpackKeywordsWithVararg. Add comments for integer arguments of _PyArg_UnpackKeywords. --- Python/clinic/Python-tokenize.c.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Python/clinic/Python-tokenize.c.h') diff --git a/Python/clinic/Python-tokenize.c.h b/Python/clinic/Python-tokenize.c.h index 730fa8ef2a2..2a0d50bda65 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]*/ -- cgit v1.2.3