[Twisted-Python] help with refcounts and memleaks
andrea at cpushare.com
Mon Dec 26 19:20:09 EST 2005
On Mon, Dec 26, 2005 at 12:31:32PM -0500, Bob Ippolito wrote:
> Objects that use __del__ don't participate in cyclic garbage
> collection. You really want to write code that doesn't need it, or
> that uses weakref callbacks instead of __del__.
Thanks for the hint! I didn't know that __del__ made a difference to the
garabage collection decisions, that combined with an obsolete webpage
written in 99 was the source of quite some confusion to me.
More information about the Twisted-Python