~x
This operation negates each bit. For integers, this is equivalent to CODE "-x - 1".
i1 : ~toPython 5 o1 = -6 o1 : PythonObject of class int
The source of this document is in Python/doc/bitwise.m2:523:0.