Analyzing Python GC output - what is a "cell", and what information is available about it.
John Nagle
nagle at animats.com
Fri Jan 11 01:13:36 EST 2008
I'm printing out each entry in "gc.garbage" after a garbage collection in
DEBUG_LEAK mode, and I'm seeing many entries like
<cell at 0x00F7C170: function object at 0x00FDD6B0>
That's the output of "repr". Are "cell" objects created only from
external C libraries, or can regular Python code generate them? Is there
any way to find out what the 'function object' is from within Python?
(I'm looking for a possible memory leak, obviously.)
John Nagle
More information about the Python-list
mailing list