Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
The try/except/finally Block in Python
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps¶
- The
finally
statements are guaranteed to be executed (presuming no power outage or anything outside of Python's control) after atry
/except
block runs even ifreturn
,break