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