Order of object cleanup at interpreter exit?

Fredrik Lundh effbot at telia.com
Mon Feb 14 17:01:28 CET 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:


<!-- (the eff-bot guide to) the standard python library:

More information about the Python-list mailing list