◐ Shell
clean mode source ↗

Message 189122 - Python tracker

> 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.