On Tue, Jan 22, 2013 at 9:15 AM, Tristan Seligmann
<mithra...@mithrandi.net>wrote:

> On Tue, Jan 22, 2013 at 3:06 PM, Diego Woitasen <di...@woitasen.com.ar>
> wrote:
> > I reproduce the problem with a modification of Echo client example
> > from Twisted documentation:
>
> 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.
> --
> mithrandi, i Ainil en-Balandor, a faer Ambar
>
>

 Thanks for pointing this out. I was reading through this whole thread and
going "why hasn't anyone else pointed out how wrong it is to add __del__ to
debug this yet???".


-- 
Christopher Armstrong
http://radix.twistedmatrix.com/
http://planet-if.com/
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to