def __lt__(self, other):
        try:
            if self == other:
                return False
            for i in range(len(self.versions)):
                if self.versions[i] < other.versions[i]:
                    return True # ex: 1.1 vs 1.2
                if self.versions[i] > other.versions[i]:
                    return False
            if len(self.versions) < len(other.versions):
                return True
            if len(self.versions) > len(other.versions):
                return False
            # From here, numeric part is the same - now having a rest means older version
            if 0 > len(other.numpart) and len(self.numpart) == 0:
                return False
            if len(self.numpart) > 0 and len(other.numpart) == 0:
                return True
            # Both have a rest, use a string comparison
            # alpha1 < beta1 < rc1 < rc2...
            return self.rest < other.rest
        except:
            return False
dataset/ETHPy150Open eBay/restcommander/play-1.2.4/framework/pym/play/commands/check.py/Release.__lt__/swapped operands of `>`