Return whether an attribute exists.
f.hasattr(attr) is equivalent to hasattr(f, attr).
The attribute’s name.
Whether the object has the attribute.
See also
delattr, getattr, setattr
Examples
>>> f.foo = -99 >>> fl.hasattr('foo') True >>> del f.foo >>> fl.hasattr('foo') False
cf.AuxiliaryCoordinate.getprop
cf.AuxiliaryCoordinate.hasprop
Enter search terms or a module, class or function name.