def __cmp__(self, other):
        """
        Uses 'self.low' to make the comparison

        Returns -1 if self < other
                0 if self == other
                1 if other > self
        """
        other = IntervalCell.coerce(other)
        if other.low == self.low and other.high == self.high:
            return 0
        elif self.low < other.low:
            return -1
        else:
            return 1
def __cmp__ ( self , other ) : other = IntervalCell . coerce ( other ) if other . low == self . low and other . high == self . high : return 0 elif self . low < other . low : return - 1 else : return 1
Uses 'self.low' to make the comparison

        Returns -1 if self < other
                0 if self == other
                1 if other > self