Is the ordering of True and False well defined in Python, or is it left as an implementation detail?
From the console, I’m seeing False sort before True…but I don’t know if that’s a behavior I should rely on or not.
(I’m sure there’s some Python doc about this, but I can’t find it…)
http://docs.python.org/2/reference/datamodel.html#the-standard-type-hierarchy
This reads to me that the python language requires
False < True,False == 0,True == 1,True != 2.The same wording is retained in Python 3 as well.