cf.Variable.delattr

Variable.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.Variable.datum

Next topic

cf.Variable.delprop

This Page