Set a named attribute.
f.setattr(attr, value) is equivalent to setattr(f, attr, value).
The attribute’s name.
The value to set the attribute.
None
See also
delattr, hasattr, getattr
Examples
>>> f.setattr('foo', -99) >>> f.foo -99
cf.Field.select
cf.Field.setdata
Enter search terms or a module, class or function name.