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 <>
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 ;-)
Date User Action Args
2021-09-21 21:45:48vstinnersetrecipients: + vstinner, Christian.Tismer, miss-islington
2021-09-21 21:45:48vstinnersetmessageid: <>
2021-09-21 21:45:48vstinnerlinkissue45061 messages
2021-09-21 21:45:48vstinnercreate