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 serhiy.storchaka
Recipients ZackerySpytz, benjamin.peterson, christian.heimes, serhiy.storchaka, terry.reedy, vstinner
Date 2019-04-08.14:19:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554733193.85.0.576068031529.issue18372@roundup.psfhosted.org>
In-reply-to
Content
Tracking objects that do not need this will just add work to the garbage collector. Not all instances of trackable types should be tracked, for example the empty tuple and some dicts are not tracked.

>>> gc.is_tracked(())
False
>>> gc.is_tracked((1, 2))
True
>>> gc.is_tracked({1: None})
False
>>> gc.is_tracked({1: []})
True
History
Date User Action Args
2019-04-08 14:19:53serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, vstinner, christian.heimes, benjamin.peterson, ZackerySpytz
2019-04-08 14:19:53serhiy.storchakasetmessageid: <1554733193.85.0.576068031529.issue18372@roundup.psfhosted.org>
2019-04-08 14:19:53serhiy.storchakalinkissue18372 messages
2019-04-08 14:19:53serhiy.storchakacreate