Order of object cleanup at interpreter exit?
Fredrik Lundh
effbot at telia.com
Mon Feb 14 11:01:28 EST 2000
Rob W. W. Hooft <rob at hooft.net> wrote:
> I have noticed that this does not work if the __del__ method is called
> when the interpreter is exiting (i.e., when I am using a Robot() object
> in the __main__ module at the global scope). I get:
jason and michael have already pointed out how to
work around this.
for some background info, see:
http://www.python.org/doc/essays/cleanup.html
</F>
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list