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

Antoine Pitrou report at bugs.python.org
Fri May 10 12:10:31 CEST 2013


Antoine Pitrou added the comment:

> Right, I misread the code.
> Since the remove_subclass() function is called when a subclass dies,
> I don't think it is necessary to clear out weak references in
> add_subclass().  They are there merely to break the reference cycle.

Agreed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17936>
_______________________________________


More information about the Python-bugs-list mailing list