Skip to content

gh-122943: Rework support of var-positional parameter in Argument Clinic#122945

Merged
serhiy-storchaka merged 17 commits intopython:mainfrom
serhiy-storchaka:clinic-var-positional
Nov 7, 2024
Merged

gh-122943: Rework support of var-positional parameter in Argument Clinic#122945
serhiy-storchaka merged 17 commits intopython:mainfrom
serhiy-storchaka:clinic-var-positional

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Aug 12, 2024

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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants