Python madness in comparisons with None
In python, everything is greater than None,
>>> 0 > None
True
>>> 0 < None
False
>>> 1 > None
True
>>> 1 < None
False
>>> -1 > None
True
>>> -1 < None
False
>>> 'a' > None
True
>>> 'a' < None
False
>>> 1.0 > None
True
>>> 1.0 < None
False
Comments