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

PythonObject << PythonObject -- the left shift operator for Python objects

Description

Perform the left shift operator on Python objects.

i1 : toPython 1 << toPython 3

o1 = 8

o1 : PythonObject of class int

If one of the arguments is a Macaulay2 object, then it is first converted to a Python object before shifting.

i2 : toPython 1 << 4

o2 = 16

o2 : PythonObject of class int
i3 : 1 << toPython 5

o3 = 32

o3 : PythonObject of class int

See also

Menu

Ways to use this method:


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