This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author arigo
Recipients
Date 2006-06-29.21:29:01
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=4771

It is not the type object that is cleared, it is the global
names of the module.  They are replaced with None when the
interpreter shuts down, which is why the expression
'Shape.refcount' find None under the name 'Shape'.  It's an
obscure leftover for historical reasons.  I'm not sure why
the problem somes bites and sometimes not.  A workaround is
to avoid reading globals from __del__() methods; e.g. use
self.__class__.refcount instead of Shape.refcount...

(This of course doesn't excuse the fact that this is a
long-standing bug.)
History
Date User Action Args
2007-08-23 14:40:54adminlinkissue1513802 messages
2007-08-23 14:40:54admincreate