- def __ilshift__(self, other):
- self.value = self << other
- return self
-
- def __irshift__(self, other):
- self.value = self >> other
- return self
-
- def __iand__(self, other):
- self.value = self & other
- return self
-
- def __ixor__(self, other):
- self.value = self ^ other
- return self
-
- def __ior__(self, other):
- self.value = self | other
- return self
-
- def __lt__(self, other):
- if not isinstance(other, numbers.Integral):
- return super().__lt__(other);
-
- return self._value < int(other)
-
- def _spec_eq(self, other):
- if not isinstance(other, numbers.Integral):
- return super()._spec_eq(other);
-
- return self._value == int(other)
-