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

PythonObject ~ -- bitwise not of a python object

Description

This calls Python's special __invert__ method.

i1 : (toPython 5)~

o1 = -6

o1 : PythonObject of class int

Ways to use this method:


The source of this document is in Python/doc.m2:370:0.