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

Mike Graham mikegraham at gmail.com
Fri Mar 18 20:38:21 CET 2011


On Fri, Mar 18, 2011 at 12:32 PM, Masklinn <masklinn at masklinn.net> wrote:
> 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?

You're right.



More information about the Python-ideas mailing list