type/python
check for an object of type python
Calling Sequence
Parameters
Description
Supertypes
Examples
Compatibility
type(x, python)
x
-
any expression
The call type(x, python) checks to see if x is of type python. It returns true if x is of type python, and false otherwise.
An object is of type python if it is a reference to an object from a Python session running alongside the current Maple session.
Such objects may be created with commands from the Python package such as EvalFunction, EvalMember, EvalString, or GetVariable.
The convert/python function can convert expressions in Maple into type python expressions which reference equivalent Python expressions.
The convert/maple function can convert objects of type python to equivalent Maple expressions. Additionally, the following convert routines can also handle objects of type python:
Array
equationlist
list
Matrix
MutableSet
record
set
table
Vector
type/foreign
Construct a Python set and check that it is of type python.
Construct a Python list. Since conversion to Maple lists is automatic, the default result will not be of type python.
If a Python object is explicitly requested, the result will be of type python.
The convert command can also construct Python expressions.
The type/python command was introduced in Maple 2020.
For more information on Maple 2020 changes, see Updates in Maple 2020.
See Also
convert/maple
convert/python
Python
type
Download Help Document