cf.Coordinate.delattr

Coordinate.delattr(attr)[source]

Delete a named attribute.

f.delattr(attr) is equivalent to delattr(f, attr).

Parameters :
attr : str

The attribute’s name.

Returns :

None

See also

getattr, hasattr, setattr

Examples

>>> f.foo
-99
>>> f.delattr('foo')
>>> getattr(f, 'foo', 'bar')
'bar'

Previous topic

cf.Coordinate.datum

Next topic

cf.Coordinate.delprop

This Page