Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue18372> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com