Antoine Pitrou added the comment:

I think the logic is slightly wrong in remove_subclass. When you encounter 
Py_None, you can't be sure it's the weakref for the current type; 
theoretically, it could be any other one (depending on oddities in cleanup 
order, cycle collection, etc.). So you have to continue walking the list.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17936>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to