The goal is to keep things pretty much backwards compatible. The PyMethodDef is still part of the public API of creating both static and dynamic types, so I don't want to mess with that too much.
On Wed, Jun 12, 2019 at 9:22 AM Jeroen Demeyer <J.Demeyer@ugent.be> wrote:
On 2019-06-12 03:42, Joe Jevnik via capi-sig wrote:
One idea I have is to change PyCFunctionObject to hold a PyMethodDef *value* instead of a pointer.
We might as well go further and rethink how we store the data provided by PyMethodDef. For example, we could store the function name as Python str object (instead of a C string). I did that in my PEP 580 implementation (which was rejected) and it simplified some code.
capi-sig mailing list -- capi-sig@python.org To unsubscribe send an email to capi-sig-leave@python.org