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.Variable.getprop
cf.Variable.hasprop
Enter search terms or a module, class or function name.