1.1 --- a/lib/__builtins__/int.py Sat Dec 03 16:44:55 2016 +0100
1.2 +++ b/lib/__builtins__/int.py Sat Dec 03 17:11:59 2016 +0100
1.3 @@ -114,6 +114,12 @@
1.4
1.5 return self._binary_op(native._int_xor, other)
1.6
1.7 + def __invert__(self):
1.8 +
1.9 + "Return the inversion of this int."
1.10 +
1.11 + return native._int_not(self.__data__)
1.12 +
1.13 __add__ = __radd__ = __iadd__
1.14 __sub__ = __isub__
1.15
1.16 @@ -192,8 +198,6 @@
1.17
1.18 return _negate(self.__eq__(other))
1.19
1.20 - def __invert__(self): pass
1.21 -
1.22 def __neg__(self):
1.23
1.24 "Apply the unary negation operator."