a function able to check if an object is equipped with a given property is named in python code example
Example 1: python3 check if object has attribute
try:
doStuff(a.property)
except AttributeError:
otherStuff()
Example 2: python hasattribute
hasattr(object, name)