[Python-ideas] mixins as decorators vs inheritance [was: Automatic comparisons by default]

Masklinn masklinn at masklinn.net
Fri Mar 18 17:32:28 CET 2011

On 2011-03-18, at 14:58 , Mike Graham wrote:
> *Of course, here I am ignoring the possibility that TotallyOrdered**
> is implemented as an abstract base class and all the stdlib is
> registered with it appropriately. This is because I don't think that
> would be the right thing to do – TotallyOrdered isn't a meaningful
> abstract type.

Why wouldn't TotallyOrdered not be a meaningful abstract type? Especially when compared to Sized or Hashable?

More information about the Python-ideas mailing list