[Twisted-Python] Twisted client memory leak
radix at twistedmatrix.com
Tue Jan 22 10:41:23 EST 2013
On Tue, Jan 22, 2013 at 9:15 AM, Tristan Seligmann
<mithrandi at mithrandi.net>wrote:
> On Tue, Jan 22, 2013 at 3:06 PM, Diego Woitasen <diego at woitasen.com.ar>
> > 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???".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python