mirror of https://github.com/python/cpython
1f777396f5
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". |
||
---|---|---|
.. | ||
bytearrayobject.c.h | ||
bytesobject.c.h | ||
classobject.c.h | ||
codeobject.c.h | ||
complexobject.c.h | ||
descrobject.c.h | ||
dictobject.c.h | ||
enumobject.c.h | ||
floatobject.c.h | ||
funcobject.c.h | ||
listobject.c.h | ||
longobject.c.h | ||
memoryobject.c.h | ||
moduleobject.c.h | ||
odictobject.c.h | ||
setobject.c.h | ||
structseq.c.h | ||
tupleobject.c.h | ||
typeobject.c.h | ||
typevarobject.c.h | ||
unicodeobject.c.h |