Returns a Boolean stating whether the object has the specified attribute.
hasattr (object, name)
- object
- Required. Any object.
- name
- Required. String representation of the attribute.
#TODO
#TODO
>>> class Foo:
... pass
...
>>> f = Foo()
>>> hasattr(f, 'x')
False
>>> f.x = 5
>>> hasattr(f, 'x')
True#TODO