◐ Shell
clean mode source ↗

Message 286733 - Python tracker

> * Create unbound PyCFunction and cache it

Does it mean create a new private type, similar to PyCFunction_Type (PyCFunctionObject) but without the self attribute?

IMHO creating a new type is complex. I'm not sure that it's worth it, especially if the _PyMethodDescr_FastCallKeywords() idea is simpler to implement and "fast enough".