[Python-Dev] Cycle collection enhancement idea
Guido van Rossum
guido at python.org
Sun Jun 29 06:52:22 CEST 2008
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...
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list