None - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Python

  

None

  

variable equivalent of Python's None

 

Calling Sequence

Description

Examples

Compatibility

Calling Sequence

None

Description

• 

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.

Examples

withPython:

dictEvalString{ 'color':'blue', 'shape':'square', 'material':'steel' }

dict<Python object: {'color': 'blue', 'shape': 'square', 'material': 'steel'}>

(1)

SetVariableD&comma;dict

true

(2)

EvalStringD.get('color')

blue

(3)

EvalStringD.get('noprop')

None

(4)

EvalFunctiontype&comma;Python:-None

<Python object: <class 'NoneType'>>

(5)

Compatibility

• 

The Python[None] command was introduced in Maple 2018.

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

Python

Python:-EvalString