cf.AuxiliaryCoordinate.delattr

AuxiliaryCoordinate.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

Examples

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

Previous topic

cf.AuxiliaryCoordinate.datum

Next topic

cf.AuxiliaryCoordinate.delprop

This Page