Beispiel #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
Beispiel #2
0
 def __cmp__(self, other):
     return builtins.cmp(self.value, other.value)