[issue44214] PyArg_Parse* for vectorcall?

Serhiy Storchaka report at bugs.python.org
Tue May 25 11:39:24 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

There are alternative ideas of parsing API which should be considered:

1. Linearize keyword arguments using _PyArg_UnpackKeywords() and parse the linear array of arguments with a variant of _PyArg_ParseStack().

2. Parse arguments outside of the user function and pass already parsed values (as in Argument Clinic). Or just pre-process keyword arguments and pass a continuous array of arguments with possible NULLs for optional parameters. Specification for parsing arguments should be added to PyMethodDef.

I do not know what idea will work better, it needs experimentation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44214>
_______________________________________


More information about the Python-bugs-list mailing list