Mark Dickinson <dicki...@gmail.com> added the comment:

The exception you report looks incomplete:  there should be something after the 
'no attribute' saying which attribute lookup failed.

In any case, I don't thing this is a bug.  It sounds like a result of the 
unpredictability of cleanup order at interpreter shutdown:  you're encountering 
a situation where the 'Person' reference has already been deleted from the 
module namespace before the __del__ method for one of the Person instances gets 
called;  so the 'Person' name lookup in the __del__ method fails.  You could 
get around this by replacing 'Person' with 'type(self)' in __del__.

----------
nosy: +mark.dickinson
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15193>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to