def __cmp__ ( self , other ) : # Stops python 2 from allowing comparsion of arbitrary objects raise TypeError ( 'unorderable types: {}, {}' '' . format ( self . __class__ . __name__ , type ( other ) ) )
python cmp overload for objects
Comparsion not implemented .
def __cmp__(self, other):
        """Comparsion not implemented."""
        # Stops python 2 from allowing comparsion of arbitrary objects
        raise TypeError('unorderable types: {}, {}'
                        ''.format(self.__class__.__name__, type(other)))