This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients jkloth, methane, ronaldoussoren, serhiy.storchaka
Date 2021-05-25.15:39:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621957164.01.0.441499147387.issue44214@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-05-25 15:39:24serhiy.storchakasetrecipients: + serhiy.storchaka, ronaldoussoren, jkloth, methane
2021-05-25 15:39:24serhiy.storchakasetmessageid: <1621957164.01.0.441499147387.issue44214@roundup.psfhosted.org>
2021-05-25 15:39:24serhiy.storchakalinkissue44214 messages
2021-05-25 15:39:23serhiy.storchakacreate