4 ms·
This is a good idea!
by tekknolagi 3y ago
This is a good idea!
- lifthrasiir 3y agoAfter some more pondering, I have another question: how about slot methods? I'm sure that you don't really have anything comparable to the method name if slots, and more recent `PyType_Slot` doesn't help either (unless PyPy starts to define its own slot ID). It looks like that there should be some centralized extension point instead of per-method extensions. Extending either `PyModuleDef.m_methods` or `PyModuleDef.m_slots`, by putting metadata before their first entry, seems doable. Discovering their presence is another problem, though.