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 Christian.Tismer, miss-islington, vstinner
Date 2021-09-21.21:45:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632260748.8.0.187245650923.issue45061@roundup.psfhosted.org>
In-reply-to
Content
I don't want to add a deallocator to bytes and int types to detect when their singleton is destroyed, since it would slow down C extensions which have no refcount bug. Maybe it could be added only if Py_DEBUG macro is defined. But I don't think that Py_DECREF() bugs on these singletons are common enough to justify these. I don't want to make Python debug build slower.

IMO detecting refcount bugs on the most common singletons is enough: None, True, False, (), "". I implemented these checks because it was simple and had no major on performance, even on the debug build.

I now consider that the issue is fully fixed ;-)
History
Date User Action Args
2021-09-21 21:45:48vstinnersetrecipients: + vstinner, Christian.Tismer, miss-islington
2021-09-21 21:45:48vstinnersetmessageid: <1632260748.8.0.187245650923.issue45061@roundup.psfhosted.org>
2021-09-21 21:45:48vstinnerlinkissue45061 messages
2021-09-21 21:45:48vstinnercreate