summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-11-07 21:40:03 (GMT)
committerGitHub <noreply@github.com>2024-11-07 21:40:03 (GMT)
commit1f777396f52a4cf7417f56097f10add8042295f4 (patch)
treed2b16073b0665beba75e900fff1dd2daf24b0717 /configure
parent09d6f5dc7824c74672add512619e978844ff8051 (diff)
downloadcpython-1f777396f52a4cf7417f56097f10add8042295f4.zip
cpython-1f777396f52a4cf7417f56097f10add8042295f4.tar.gz
cpython-1f777396f52a4cf7417f56097f10add8042295f4.tar.bz2
gh-122943: Rework support of var-positional parameter in Argument Clinic (GH-122945)
Move creation of a tuple for var-positional parameter out of _PyArg_UnpackKeywordsWithVararg(). Merge _PyArg_UnpackKeywordsWithVararg() with _PyArg_UnpackKeywords(). Add a new parameter in _PyArg_UnpackKeywords(). The "parameters" and "converters" attributes of ParseArgsCodeGen no longer contain the var-positional parameter. It is now available as the "varpos" attribute. Optimize code generation for var-positional parameter and reuse the same generating code for functions with and without keyword parameters. Add special converters for var-positional parameter. "tuple" represents it as a Python tuple and "array" represents it as a continuous array of PyObject*. "object" is a temporary alias of "tuple".
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions