cf.Field.delattr

Field.delattr(attr)[source]

Delete a named attribute.

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

See also

getattr, hasattr, setattr

Parameters:
attr : str

The attribute’s name.

Returns:

None

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

Previous topic

cf.Field.datum

Next topic

cf.Field.delprop

This Page