gc.get_referrers trouble
Diez B. Roggisch
deetsNOSPAM at web.de
Tue Sep 7 14:00:58 EDT 2004
Hi,
I'm in the process of debugging a mem-leaking app. A recent thread here on
c.l.py mentioned the use of the gc module, so I gave it a try.
However, using get_referrers() yields in literally thousands of objects for
even the tiniest example like this:
import gc
a = [1]
print gc.get_referrers(1)
Running that from bash gives me this:
# python /tmp/test.py | wc
23 7196 67165
Now I'm confused - how do I interpret the results of get_referrers()
correctly?
--
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list