2010/7/22 Antoine Pitrou <solip...@pitrou.net>: > On Thu, 22 Jul 2010 08:51:57 +0100 > Brett Cannon <br...@python.org> wrote: >> >> That's an option. I just remember Tim bringing up something about that >> approach that didn't quite work as a complete replacement for __del__. >> >> Basically the whole setting a module's globals to None was done before gc >> came into the language. Now that it's there it seems that it might work to >> simply let gc clean up the module itself. > > There is a patch at http://bugs.python.org/issue812369 for GC-based > module shutdown, but it doesn't actually remove the setting of module > globals to None. I think further testing and experimentation would be > required to validate it.
Also, it seems to have been stalled by static globals in extension modules that the gc doesn't know about. -- Regards, Benjamin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com