Answers for "how to check if a object is a class or a function python"

5

python check if class has function

class A:
  def func():
    pass
hasattr(A(), 'func')
Posted by: Guest on July-03-2020

Code answers related to "how to check if a object is a class or a function python"

Python Answers by Framework

Browse Popular Code Answers by Language