cf.Coordinate.setattr

Coordinate.setattr(attr, value)[source]

Set a named attribute.

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

Parameters :
attr : str

The attribute’s name.

value :

The value to set the attribute.

Returns :

None

See also

delattr, hasattr, getattr

Examples

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

Previous topic

cf.Coordinate.select

Next topic

cf.Coordinate.setdata

This Page