Mark Dickinson <dicki...@gmail.com> added the comment: This has to do with the order that things are deleted/cleaned-up on interpreter shutdown. In the reported case, it just happens that the 'Person' entry in the globals() dict is deleted *before* __del__ is called on the last Person instance, causing problems for the lookup of 'Person' that's involved in the line 'Person.population -= 1'.
I wonder whether the output from these 'ignored' exceptions on interpreter shutdown could be suppressed entirely, at least for non-debug builds? ---------- nosy: +marketdickinson _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6495> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com