[Python-Dev] Cycle collection enhancement idea

Adam Olsen rhamph at gmail.com
Sun Jun 29 19:22:05 CEST 2008

On Sat, Jun 28, 2008 at 10:52 PM, Guido van Rossum <guido at python.org> wrote:
> On Sat, Jun 28, 2008 at 5:39 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>> Nick Coghlan wrote:
>>> It's a fact of Python development: __del__ methods cannot safely reference
>>> module globals, because those globals may be gone by the time that method is
>>> invoked.
>> Speaking of this, has there been any more thought given
>> to the idea of dropping the module clearing and just
>> relying on cyclic GC?
> No, but it is an intriguing thought nevertheless. The module clearing
> causes nothing but trouble...

Already gone in python-safethread.  Then again, so is __del__. ;)
(Replaced with __finalize__)

Adam Olsen, aka Rhamphoryncus

More information about the Python-Dev mailing list