cf.FieldList.__getitem__

FieldList.__getitem__(index)[source]

Called to implement evaluation of f[index]

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

Returns
Field or FieldList

If index is an integer then a field construct is returned. If index is a slice then a field list is returned, which may be empty.

Examples:

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