Use __del__ methods to improve gc?
Edward K. Ream
edreamleo at charter.net
Fri Jun 13 12:27:45 EDT 2003
> I suspect the paragraph you mean might be...: [snip]
That's the one. Thanks Alex. It is now up on my wall :-)
BTW, I'm chuckling a little less now. Executing:
print len(gc.garbage), len(gc.get_objects())
periodically shows that my app is steadily eating memory. len(gc.garbage)
remains zero while len(gc.get_objects()) steadily increases. And I thought
I was recycling all bindings :-(
You wouldn't know of something similar to timeit for storage allocation,
would you?
EKR
--------------------------------------------------------------------
Edward K. Ream email: edreamleo at charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------
More information about the Python-list
mailing list