Get a named attribute.
f.getattr(attr, *default) is equivalent to getattr(f, attr, *default).
The attribute’s name.
When a default argument is given, it is returned when the attribute doesn’t exist; without it, an exception is raised in that case.
The attribute’s value.
See also
delattr, delprop, getprop, setattr, setprop
Examples
>>> f.foo = -99 >>> fl.getattr('foo') -99 >>> del f.foo >>> fl.getattr('foo', 'bar') 'bar'
cf.Variable.flip
cf.Variable.getprop
Enter search terms or a module, class or function name.