Answers for "check if it's class python"

1

check if it's class python

isinstance(var, VarClass)
Posted by: Guest on April-01-2022
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 "check if it's class python"

Python Answers by Framework

Browse Popular Code Answers by Language