STINNER Victor <[email protected]> added the comment:
Py_TRASHCAN_BEGIN() access directly PyTypeObject.tp_dealloc:
#define Py_TRASHCAN_BEGIN(op, dealloc) \
Py_TRASHCAN_BEGIN_CONDITION(op, \
Py_TYPE(op)->tp_dealloc == (destructor)(dealloc))
It should use PyType_GetSlot() or a new getter function (to read
PyTypeObject.tp_dealloc) should be added.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40170>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com