In Python 2, all objects are ordered.
CPython ( Python) None , . , , ; function Zippedeedoodah. .
Python . :
<, >, ==, >=, <= != . . , . , .
Python 3 , , :
>>> def a(x): return x+3
...
>>> a < 4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: function() < int()