Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __rtruediv__(self, y):
return NonStandardInteger(operator.truediv(y, self.val))
def __mod__(self, y):
return NonStandardInteger(operator.mod(self.val, y))
def __rdiv__(self, y):
return NonStandardInteger(operator.div(y, self.val))
def __rpow__(self, y):
return NonStandardInteger(operator.pow(y, self.val))
def __lt__(self, y):
if isinstance(y, NonStandardInteger):
y = y.val
return operator.lt(self.val, y)
def __rxor__(self, y):
return NonStandardInteger(operator.xor(y, self.val))
def __radd__(self, y):
return NonStandardInteger(operator.add(y, self.val))
def __rmod__(self, y):
return NonStandardInteger(operator.mod(y, self.val))
def __rrshift__(self, y):
return NonStandardInteger(operator.rshift(y, self.val))
def __neg__(self):
return NonStandardInteger(operator.neg(self.val))