This type corresponds to all objects of the PyObject type in the Python C API, and in particular all of the types that users are familiar with from the Python language itself.
You can perform basic arithmetic on python objects.
|
|
|
|
|
|
You can also compare them.
|
|
You can also perform operations on python objects and Macaulay2 things. The results will be returned as python objects.
|
Note that many keywords in Macaulay2 are mapped to a certain dunder method in Python. In particular,
The object PythonObject is a type, with ancestor class Thing.