__len__
number of elements in the Indexable
Calling Sequence
Parameters
Description
Examples
x.__len__()
len(x)
x
-
Indexable object
__len__ returns the number of elements in the Indexable x.
This function can also be called by simply entering len(x).
The following interactive session illustrates the use of __len__:
>>> import maple
>>> import maple.namespace
>>> S = maple.execute('{3,4,2*Pi,sqrt(2)};')
>>> S.__len__()
4
>>> len(S)
See Also
OpenMaple
OpenMaple/Python/API
OpenMaple/Python/Expression
OpenMaple/Python/Indexable
OpenMaple/Python/Indexable/__contains__
OpenMaple/Python/Indexable/__iter__
Download Help Document