[Python-Dev] Silencing IO errors on del/dealloc?

Neil Schemenauer nas at arctrix.com
Tue Feb 24 01:59:08 CET 2009


Guido van Rossum <guido at python.org> wrote:
> So how do you get destructors to run in that case? Or do you just not
> run them? Then open files may not be closed and may not even see their
> buffer flushed. I'm not happy about that.

Unfortantely I don't have an up-to-date understand of the issues
regarding modules and reference cycles.  As I understand it, the
patches makes the shutdown procedure replace references to modules
with weak references thereby allowing most to be GCed.  Running
finalizers in that environment is causes less problems then just
directly clobbering global vars with None.

  Neil



More information about the Python-Dev mailing list