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, delprop, getattr, getprop, setprop
Examples
>>> f.setattr('foo', -99) >>> f.foo -99
cf.Variable.select
cf.Variable.setdata
Enter search terms or a module, class or function name.