Author mark.dickinson
Recipients mark.dickinson, prime
Date 2012-06-26.13:19:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340716750.78.0.344401203877.issue15193@psf.upfronthosting.co.za>
In-reply-to
Content
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__.
History
Date User Action Args
2012-06-26 13:19:11mark.dickinsonsetrecipients: + mark.dickinson, prime
2012-06-26 13:19:10mark.dickinsonsetmessageid: <1340716750.78.0.344401203877.issue15193@psf.upfronthosting.co.za>
2012-06-26 13:19:10mark.dickinsonlinkissue15193 messages
2012-06-26 13:19:09mark.dickinsoncreate