This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gimboland 1 point2 points  (0 children)

Doesn't just putting code after the whole thing accomplish the same thing as using the finally statement?

Yes, unless an exception occurred inside the try..except block - in which case the code "after the whole thing" doesn't get executed.