Ejemplo n.º 1
0
 def __cmp__(self, other):
     diff = builtins.cmp(self.qvalue, other.qvalue)
     if diff == 0:
         diff = builtins.cmp(str(self), str(other))
     return diff
Ejemplo n.º 2
0
 def __cmp__(self, other):
     return builtins.cmp(self.value, other.value)