type/foreign
check for an object of type foreign
Calling Sequence
Parameters
Description
Subtypes
Examples
Compatibility
type(x, foreign)
x
-
any expression
The type(x, foreign) calling sequence returns true if x is a so-called FOREIGN DAG. See the appendix to the programming manual for more details. In the C API functions, FOREIGN DAGs are called Maple Pointers.
type/python
Numbers and algebraic expressions are not FOREIGN DAGs.
type⁡1,foreign
false
type⁡sin⁡x,foreign
The Python package uses FOREIGN DAGs to represent Python objects that aren't automatically converted to Maple equivalents.
dictionary≔Python:-EvalString⁡{}
dictionary≔<Python object: {}>
type⁡dictionary,foreign
true
The type/foreign command was introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
type
Download Help Document