[Python-Dev] Micro-benchmarks for PEP 580 (original) (raw)

Jeroen Demeyer J.Demeyer at UGent.be
Tue Jul 10 09:29:41 EDT 2018


On 2018-07-10 14:59, INADA Naoki wrote:

Currently, we create temporary long object for passing argument. If there is protocol for exposeing format used by PyArgParse*, we can bypass temporal Python object and call myfuncimpl directly.

Indeed, I already mentioned this at https://www.python.org/dev/peps/pep-0579/#allowing-native-c-arguments

The way I see it, these kind of improvements should be done on top of PEP 580. Maybe I didn't emphasize this enough, but one of the goals of PEP 580 is to create an extensible protocol where such features can easily be added later in a compatible way.

Jeroen.



More information about the Python-Dev mailing list