cf.FieldList.__contains__

FieldList.__contains__(y)[source]

Called to implement membership test operators.

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

Each construct in the list is compared with its equals method, rather than the == operator.

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