Antoine Pitrou added the comment: > Optionally we can also not count objects which are referenced from > outside of a graph of objects (this isn't so easy implement in > Python). I.e. gettotalsizeof([1, 'abc', math.sqrt(22)], inner=True) > will count only bare list and a square of 22, because 1 and 'abc' are > interned.
That's only part of the equation. What if I have an object which references, for example, a logging.Logger? Loggers are actually eternal (they live in a global dictionary somewhere in the logging module), but gettotalsizeof() will still count it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19048> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com