Sorting: too different times. Why?

Duncan Booth duncan.booth at invalid.invalid
Sun Nov 22 10:08:28 EST 2009


n00m <n00m at narod.ru> wrote:

> And now it's elephants instead of vectors.
> Def: an elephant is smarter than another one IIF
> its size is strictly less but its IQ is strictly
> greater
> 
> I.e. you can't compare (2, 8) to (20, 50)
> or let count them as equally smart elephants.

and that still isn't a relationship where you can get any meaningful order 
out of sorting them:

>>> Elephant(1, 20) < Elephant(2, 10)
True
>>> Elephant(1, 20) == Elephant(2, 20) == Elephant(2, 10)
True



More information about the Python-list mailing list