Message188924
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:32 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, pitrou, vstinner |
2013-05-11 14:32:32 | kristjan.jonsson | set | messageid: <1368282752.2.0.965787769989.issue17936@psf.upfronthosting.co.za> |
2013-05-11 14:32:32 | kristjan.jonsson | link | issue17936 messages |
2013-05-11 14:32:32 | kristjan.jonsson | create | |
|