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 PyArg_Parse*, we can
bypass temporal Python object and call myfunc_impl 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.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com