__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 maple
>>> import maple.namespace
>>> T = maple.execute('table([x=2, y=3]):')
>>> T[ maple.namespace.x ]
2
>>> T.__getitem__( maple.namespace.x )
See Also
OpenMaple
OpenMaple/Python/API
OpenMaple/Python/Expression
Download Help Document