cf.FieldList.index

FieldList.index(value, start=0, stop=None)[source]

Return first index of value.

Each field in the field list is compared with the field’s equals method, as opposed to the == operator.

An exception is raised if there is no such field.

See also

list.index