[issue17936] O(n**2) behaviour when adding/removing classes

Antoine Pitrou report at bugs.python.org
Mon May 13 11:19:07 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue17936>
_______________________________________


More information about the Python-bugs-list mailing list