how to know which function in a class is implemented python code example Example: python check if class has function class A: def func(): pass hasattr(A(), 'func')