Sorting: too different times. Why?
duncan.booth at invalid.invalid
Sun Nov 22 16:08:28 CET 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
> 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)
>>> Elephant(1, 20) == Elephant(2, 20) == Elephant(2, 10)
More information about the Python-list