Quote:
|
Originally Posted by Dietrich
Does anybody know the why?
|
It would appear that Python considers lists to always be "less than" tuples, no matter what the elements in the two objects:
>>> [1, 2] < (0, 1)
True
>>> [1, 2] < (0,)
True
Likewise, the reverse applies; tuples are considered to be always "greater than" lists.