cf.FieldList.hasprop

FieldList.hasprop(prop)[source]

For each field, return True if a CF property exists, otherise False.

fl.hasprop(prop) is equivalent to cf.List(f.hasprop(prop) for f in fl).

Parameters :
prop : str

The name of the property.

Returns :
out : cf.List

True or False for each field.

Previous topic

cf.FieldList.hasattr

Next topic

cf.FieldList.identity

This Page