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

objectType -- type of a python object

Synopsis

Description

This is equivalent to the type function in Python.

i1 : objectType pythonValue "2"

o1 = <class 'int'>

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

o2 = <class 'str'>

o2 : PythonObject of class type

For the programmer

The object objectType is a compiled function.