cf.List.has_property¶
-
List.
has_property
(prop)[source]¶ Whether a property has been set.
See also
clear_properties
,del_property
,get_property
,properties
,set_property
New in version 3.0.0.
Parameters: - prop:
str
The name of the property.
- Parameter example:
prop='long_name'
Returns: Examples:
>>> f.set_property('project', 'CMIP7') >>> f.has_property('project') True >>> f.get_property('project') 'CMIP7' >>> f.del_property('project') 'CMIP7' >>> f.has_property('project') False >>> print(f.del_property('project', None)) None >>> print(f.get_property('project', None)) None
- prop: