class A(object): def target_func(self, p): pass def another_func(self): pass