[Python-Dev] Fun with 2.3 shutdown

Jim Fulton jim at zope.com
Sun Sep 21 06:06:45 EDT 2003


Armin Rigo wrote:

...

> Another question, what was the rationale for setting module globals to None
> instead of simply deleting them (and getting the expected AttributeErrors both
> at C and at Python level) ?

Or, given cyclic GC, why isn't it enough to clear sys.modules?
In theory, shouldn't that make all modules (and thier globals)
collectable unless there are threads hanging on to them?

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (703) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Python-Dev mailing list