cf.DimensionCoordinate.setattr

DimensionCoordinate.setattr(attr, value)[source]

Set a named attribute.

f.setattr(attr, value) is equivalent to setattr(f, attr, value).

See also

delattr, hasattr, getattr

Parameters:
attr : str

The attribute’s name.

value :

The value to set the attribute.

Returns:

None

Examples:
>>> f.setattr('foo', -99)
>>> f.foo
-99

Previous topic

cf.DimensionCoordinate.select

Next topic

cf.DimensionCoordinate.setprop

This Page