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 fl is equivalent to any(f.equals(y) for f in fl).