[Python-Dev] PEP 579 and PEP 580: refactoring C functions and methods

INADA Naoki songofacandy at gmail.com
Sat Jul 7 00:10:59 EDT 2018

How often "custom method type" are used?

I thought Cython use it by default.
But when I read code generated by Cython, I can't find it.
It uses normal PyMethodDef and tp_methods.

I found CyFunction in Cython repository, but I can't find
how to use it.  Cython document doesn't explain any information
about it.

When, and how often custom method type is used?
Isn't it very rare?  If there are only 0.1% custom method type,
why reducing 30% calling overhead is important for them?

I want more possible target applications to motivate me
for such complex protocols.

INADA Naoki  <songofacandy at gmail.com>

More information about the Python-Dev mailing list