[Python-3000] PEP: Eliminate __del__
Giovanni Bajo
rasky at develer.com
Sat May 5 13:21:59 CEST 2007
On 04/05/2007 20.35, Adam Olsen wrote:
> Any attempt that keeps the entire contents of __dict__ alive is
> doomed. It's likely to contain a cycle back to the original object,
> and avoiding that is the whole point of jumping through these hoops.
Uh? If __dict__ contains a cycle back to the original object, then the object
is part of a cycle already, with or without getting an additional reference to
the __dict__ within the finalization callback.
And if there's no cycle, you're not creating one by just referencing __dict__.
--
Giovanni Bajo
More information about the Python-3000
mailing list