Message365862
| Author |
vstinner |
| Recipients |
Michael.Felt, corona10, petdance, shihai1991, vstinner |
| Date |
2020年04月06日.15:24:18 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1586186658.17.0.944393147126.issue40170@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|