On Apr 28, 3:59 pm, Christian Heimes <li...@cheimes.de> wrote: > The trick works only for objects that are tracked by CPython's garbage > collector. Simple and non-containerish objects like str, int, unicode > and some other types aren't tracked by the gc.
Yes they are -- have you ever tried >>> import gc >>> gc.get_referrers(42) ? Marius Gedminas -- http://mail.python.org/mailman/listinfo/python-list