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 hasattr, setattr
Examples
>>> f.foo = -99 >>> fl.getattr('foo') -99 >>> del f.foo >>> fl.getattr('foo', 'bar') 'bar'
cf.DimensionCoordinate.get_bounds
cf.DimensionCoordinate.getprop
Enter search terms or a module, class or function name.