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 <1368282752.2.0.965787769989.issue17936@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-05-11 14:32:32kristjan.jonssonsetrecipients: + kristjan.jonsson, pitrou, vstinner
2013-05-11 14:32:32kristjan.jonssonsetmessageid: <1368282752.2.0.965787769989.issue17936@psf.upfronthosting.co.za>
2013-05-11 14:32:32kristjan.jonssonlinkissue17936 messages
2013-05-11 14:32:32kristjan.jonssoncreate