def __cmp__(self, other): ret = AbstractResult.__cmp__(self, other) if ret != 0: return ret else: return compare_float(self.mst_weight, other.mst_weight)
def __cmp__(self, other): ret = AbstractResult.__cmp__(self, other) if ret != 0: return ret else: return compare_float(self.time_sec, other.time_sec)