next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Python :: objectType

objectType -- type of a python object

Synopsis

Description

This is equivalent to the type function in Python.

i1 : objectType rs "2"

o1 = <class 'int'>

o1 : PythonObject of class type
i2 : objectType rs "'Hello, world!'"

o2 = <class 'str'>

o2 : PythonObject of class type

For the programmer

The object objectType is a compiled function.