Antoine Pitrou added the comment: > While I admit that I oversaw the exact requirement for __bases__, I think > that allowing for a "None" to be sufficient when the class is being deleted > is an important improvement.
You can't be sure the "None" corresponds to the type being deleted and not another one. If you want guaranteed (almost :-)) O(1) behaviour, you must switch to a dict. ---------- _______________________________________ 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