Antoine Pitrou <[email protected]> wrote:
> Have you tried to remove the various hacks/workarounds in the
> stdlib that currently avoid module finalization problems?
Good idea. These hacks are the best argument for applying the
change, IMHO. I made a quick review of Lib modules using __del__:
tarfile: looks not safe
tempfile: goes through elaborate motions to avoid globals
threading: yikes, I didn't attempt to decypher this one
shelve: probably not safe
dumbdb: avoids globals, easy to remove hacks
_pyio: try/except can be removed (hopefully)
urllib: avoids globals, easy to remove hacks
Will try to cook up a patch in my copious free time.
Neil
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com