Why a tuple can be compared with a number? What is the semantic of it? Does > and == have different semantic?
>>> (1,2)>0
True
>>> (1,2)>11111111111111
True
>>> (1,2)<5
False
>>> (1,2)>1.578
True
>>> (5,5)==5
False
>>> (5,5)!=5
True
This is not the same as comparing against a tuple with one element (which is compared lexicographically):
>>> (5,5)>6
True
>>> (5,5)>(6,)
False
(Note: this is a different issue than comparing the tuple content against a value)