__lt__ instead of __cmp__
overriding __cmp__ python function
Python: __cmp__ and __str__? Python: how does the functools cmp_to_key function works? How does Python's cmp_to_key function work? How should my __lt__ code look like if I want .sort() to work on my list of classes How can i change the __cmp__ function of an instance (not in class)? Pass a cmp function or a key function to a Set difference (or other set operations) in python 2.7 How to implement __cmp__() and __hash__() for my class? Special method __cmp__ doesn't work Is this correct for cmp()? how to make cmp to see the different of two dictionary? No cmp keyword for max function in python How to convert sort using cmp from python 2 to python 3? How work cmp argument on sort function in python python sorted function with user defined cmp functions Python 2.x return values for cmp __cmp__ method is this not working as expected in Python 2.x? python lt-method Python - Why cmp( ) is useful? Implementation of __lt__ to sort list Understanding cmp in python and recursion Python: 'object in list' checks and '__cmp__' overflow sort() in Python using cmp Python - User-defined classes have __cmp__() and __hash__() methods by default? Or? how to compare two objects in class using __cmp__ method in Python? eval String-cmp-operator? Is there a description of how __cmp__ works for dict objects in Python 2? Why can't I use the method __cmp__ in Python 3 as for Python 2? Function to compare lists: no __cmp__ comparison of list using cmp or ==