def __gt__ ( self , other ) : if not isinstance ( other , Key ) : return NotImplemented return self . __tuple ( ) > other . __tuple ( )
python merge greater than
Greater than ordering .
def __gt__(self, other):
    """Greater than ordering."""
    if not isinstance(other, Key):
      return NotImplemented
    return self.__tuple() > other.__tuple()