Answers for "how to check if value is of class object python code"

5

python check if class has function

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

check object attributes python

rofl = NewObject()
dir(rofl) // <-- show all of the available attributes that object has
Posted by: Guest on June-22-2021

Code answers related to "how to check if value is of class object python code"

Python Answers by Framework

Browse Popular Code Answers by Language