16 Jun
2019
16 Jun
'19
3:50 a.m.
On 2019-06-15 17:25, Eddie Elizondo wrote:
Hi Joe,
This issue has been fixed before for other slots such as Py_tp_members.
The right solution is to copy the contents of the PyMethodDef array into the heap type object itself.
I'm not convinced that this is the "right" solution. This is data which is only used to create the class but it's not used anymore after that. So PyTypeReady() could use tp_methods and create method_descriptor objects but after it's done it could just set tp_methods = NULL.