Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

isinstance python

isinstance(object, classinfo)

# if classinfo is a tuple of type objects (or recursively, other such tuples), return True
# if object is an instance of any of the types. If classinfo is not a type or tuple of types
# and such tuples, a TypeError exception is raised.
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #isinstance #python
ADD COMMENT
Topic
Name
3+2 =