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 benjamin.peterson, cstratak, ishcherb, serhiy.storchaka, vstinner
Date 2017-10-09.13:55:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
(I prefer to not split the discussion on this issue and my 2 PR, I prefer to only discuss the design in this issue.)

> Using the requires_type_collecting decorator LGTM. But I don't sure about adding PYTHONSHOWALLOCCOUNT. This looks like a new feature to me.
> What if split this PR on two parts? The one fixes issues related to immortal types, the other is about additional output.

Both changes are connected. If you only want to fix tests, that's the purpose of my much longer PR 3910.

"This looks like a new feature to me."

My PR changes the default behaviour, but COUNT_ALLOCS is not enabled by default, not even by the debug mode. You have to explicitely enable it. I expect that developers who use this option are able to track the Python 2.7 changelog and "discover" the newly added environment variable by themself. Moreover, defining PYTHONSHOWALLOCCOUNT=1 is "backward compatible" with Python < 2.7.15 and Python 3, since unknown environment variables are just ignored.
Date User Action Args
2017-10-09 13:55:12vstinnersetrecipients: + vstinner, benjamin.peterson, serhiy.storchaka, cstratak, ishcherb
2017-10-09 13:55:12vstinnersetmessageid: <>
2017-10-09 13:55:12vstinnerlinkissue31692 messages
2017-10-09 13:55:12vstinnercreate