[Python-Dev] Re: More fun with Python shutdown

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Nov 12 18:48:20 EST 2003

Bernhard Herzog <bh at intevation.de>:

> Wouldn't it be possible to call the callbacks of all weakrefs that point
> to a cycle about to be destroyed before that destruction begins?

I'm not sure that would be a good idea, for the same reasons that it
wouldn't be a good idea to do the same for __del__ methods. Something
might depend on them being called in the right order, or in not being
called too soon.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list