[Python-Dev] Re: Re: lists v. tuples (original) (raw)

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.