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

PythonObject -- a Python object

Description

In Macaulay2, all Python objects have the class PythonObject. Their Python classes are displayed after they are printed.

i1 : toPython 3

o1 = 3

o1 : PythonObject of class int
i2 : toPython "foo"

o2 = foo

o2 : PythonObject of class str

Menu

converting to Python objects

converting from Python objects

string functions

list functions

attributes

arithmetic operators

bitwise operators

logical operators

comparison operators

number-theoretic functions

floating-point functions

power, exponential, and logarithmic functions

trigonometric functions

hyperbolic functions

special functions

Methods that use a python object:

For the programmer

The object PythonObject is a type, with ancestor class Thing.


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