Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

when to use finally python

try:
    run_code1()
except TypeError:
    run_code2()
    return None   # The finally block is run before the method returns
finally:
    other_code()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #finally #python
ADD COMMENT
Topic
Name
6+3 =