[Twisted-Python] cleanup in twisted

Andrew Bennetts andrew-twisted at puzzling.org
Mon May 23 18:53:33 EDT 2005


On Tue, May 24, 2005 at 02:58:17AM +1000, Anthony Baxter wrote:
> On Monday 23 May 2005 19:56, Jp Calderone wrote:
> >   A non-simple way to resolve it is to use weakref callbacks instead of
> > __del__.  Weakref callbacks have some nasty bugs in versions of Python
> > older than 2.3.5 (more, the further back you go), and they're trickier to
> > use than __del__.  They don't create garbage cycles, though.
> 
> Which reminds me that I should try and make that patch that removes 
> deferred's __del__ method and replaces it with a weakref work... 

Deferreds in SVN no longer have a __del__; instead they hold a reference to
in ._debugInfo to a DebugInfo object that has a __del__ and is not part of a
cycle.

-Andrew.





More information about the Twisted-Python mailing list