This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2020-04-06 15:24:18vstinnersetrecipients: + vstinner, Michael.Felt, corona10, shihai1991, petdance
2020-04-06 15:24:18vstinnersetmessageid: <1586186658.17.0.944393147126.issue40170@roundup.psfhosted.org>
2020-04-06 15:24:18vstinnerlinkissue40170 messages
2020-04-06 15:24:18vstinnercreate