__getitem__
index Expression by key
Calling Sequence
Parameters
Description
Examples
x.__getitem__(y)
x[y]
x
-
Expression object
y
Expression object or Python expression
__getitem__ attempts to access the key y from the Expression x.
This function can also be getitemed by simply entering x[y].
The following interactive session illustrates the use of this operator.
>>> import maplesoft.maple as mpl
>>> import maplesoft.maple.namespace as msymbol
>>> T = mpl.execute('table([x=2, y=3]):')
>>> T[ msymbol.x ]
2
>>> T.__getitem__( msymbol.x )
See Also
OpenMaple
OpenMaple/Python/API
OpenMaple/Python/Expression
Download Help Document