Python
None
variable equivalent of Python's None
Calling Sequence
Description
Examples
Compatibility
The Python:-None variable matches Python's "None" result. This variable may show up in results from executing Python commands, and can be used as an argument when calling Python commands.
This name is part of the Python package, so it can be used in the short form None only after executing the command with(Python). However, it can always be accessed through the long form of the command by using Python:-None.
with⁡Python:
dict≔EvalString⁡{ 'color':'blue', 'shape':'square', 'material':'steel' }
dict≔<Python object: {'color': 'blue', 'shape': 'square', 'material': 'steel'}>
SetVariable⁡D,dict
true
EvalString⁡D.get('color')
blue
EvalString⁡D.get('noprop')
EvalFunction⁡type,Python:-None
<Python object: <class 'NoneType'>>
The Python[None] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
Python:-EvalString
Download Help Document