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.

It is an error if there is no such field.

See also

list.index