cf.FieldList.__contains__

FieldList.__contains__(y)[source]

Called to implement membership test operators.

x.__contains__(y) <==> y in x

Each field in the field list is compared with the field’s equals method (as aopposed to the == operator).

Note that y in x is equivalent to any(g.equals(x) for g in f).