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 petr.viktorin
Recipients Dormouse759, ncoghlan, pablogsal, petr.viktorin, shihai1991, vstinner
Date 2020-03-11.12:15:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583928927.88.0.296612598399.issue39824@roundup.psfhosted.org>
In-reply-to
Content
If you use a module subclass that needs some additional C-level infrastructure, it would be more appropriate to override tp_clear/tp_free directly.

IMO limiting m_clear/m_free to work just with the module state won't hurt. But it is an API change.
History
Date User Action Args
2020-03-11 12:15:27petr.viktorinsetrecipients: + petr.viktorin, ncoghlan, vstinner, Dormouse759, pablogsal, shihai1991
2020-03-11 12:15:27petr.viktorinsetmessageid: <1583928927.88.0.296612598399.issue39824@roundup.psfhosted.org>
2020-03-11 12:15:27petr.viktorinlinkissue39824 messages
2020-03-11 12:15:27petr.viktorincreate