Message394372
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. |
|
Date |
User |
Action |
Args |
2021-05-25 15:39:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ronaldoussoren, jkloth, methane |
2021-05-25 15:39:24 | serhiy.storchaka | set | messageid: <1621957164.01.0.441499147387.issue44214@roundup.psfhosted.org> |
2021-05-25 15:39:24 | serhiy.storchaka | link | issue44214 messages |
2021-05-25 15:39:23 | serhiy.storchaka | create | |
|