Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if object exists python

try:
    var
except NameError:
    var_exists = False
else:
    var_exists = True
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #object #exists #python
ADD COMMENT
Topic
Name
3+9 =