Macaulay2 » Documentation
Packages » Python » PythonObject » ~ PythonObject
next | previous | forward | backward | up | index | toc

~ PythonObject -- bitwise negation of a python object

Description

This operation negates each bit. For integers, this is equivalent to CODE "-x - 1".

i1 : ~toPython 5

o1 = -6

o1 : PythonObject of class int

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Python/doc/bitwise.m2:523:0.