cf.FieldList.__getitem__

FieldList.__getitem__(index)[source]

Called to implement evaluation of f[index]

f.__getitem_(index) <==> f[index]

Returns

If index is an integer then the corresponding construct element is returned. If index is a slice then a new FieldList is returned, which may be empty.

Examples

>>> g = f[0]
>>> g = f[-1:-4:-1]
>>> g = f[2:2:2]