(self, other)
Compares Captions by score.
Compares Captions by score.
Compares Captions by score .
def __cmp__(self, other):
    """Compares Captions by score."""
    assert isinstance(other, Caption)
    if self.score == other.score:
      return 0
    elif self.score < other.score:
      return -1
    else:
      return 1
def __cmp__ ( self , other ) : assert isinstance ( other , Caption ) if self . score == other . score : return 0 elif self . score < other . score : return - 1 else : return 1