Guido van Rossum <gu...@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 _______________________________________________ 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