O'Reilly logo
  • You Wang thinks this is interesting:

No matter what happens in the try block’s suite (apart from the computer or program crashing!), the finally block’s suite will be executed.

From

Cover of Programming in Python 3: A Complete Introduction to the Python Language, Second Edition

Note

this is why it suits codes of cleaning up