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 kristjan.jonsson
Recipients kristjan.jonsson, pitrou, vstinner
Date 2013-05-11.14:32:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It turned out to be slightly more compilcated.  Two additions make this complete:
1) check for the subtype OR the Py_None when removing subclass.  This removes any dependency on the order in which weakrefs are cleared.
2) When the type is cleared, manually remove ourselves from all the base classes.

It is because of the lack of 2) that the original version was always clearing out all stale weakrefs when new subclasses were added.
Date User Action Args
2013-05-11 14:32:32kristjan.jonssonsetrecipients: + kristjan.jonsson, pitrou, vstinner
2013-05-11 14:32:32kristjan.jonssonsetmessageid: <>
2013-05-11 14:32:32kristjan.jonssonlinkissue17936 messages
2013-05-11 14:32:32kristjan.jonssoncreate