[Twisted-Python] Twisted client memory leak

Facundo Batista facundobatista at gmail.com
Tue Jan 22 11:45:50 EST 2013


On Tue, Jan 22, 2013 at 12:15 PM, Tristan Seligmann
<mithrandi at mithrandi.net> wrote:

> Adding __del__ methods causes the object to become uncollectable if it
> forms part of a reference cycle. Thus it is almost always a bad idea
> to add __del__ methods when attempting to debug a space leak, as the
> most likely outcome is that you introduce a _new_, _different_ leak to
> the one you are trying to debug.

Yes, but note that without the __del__ it had the same behaviour...

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Twitter: @facundobatista



More information about the Twisted-Python mailing list