[Python-Dev] Re: Re: lists v. tuples

Andrew Koenig ark@research.att.com
Mon, 17 Mar 2003 18:34:02 -0500 (EST)

Guido> This seems an argument for keeping both __cmp__ and the six __lt__
Guido> etc.  Yet TOOWTDI makes me want to get rid of __cmp__.

I'm beginning to wonder if part of what's going on is that there are
really two different concepts that go under the general label of
"comparison", namely the cases where trichotomy does and does not apply.

In the first case, we have a total ordering; in the second, we have what
C++ calls a "strict weak ordering", which is really an ordering of
equivalence classes.