View Single Post
Old Jan 28th, 2006, 1:12 PM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote