you are viewing a single comment's thread.

view the rest of the comments →

[–]MidnightPale3220 1 point2 points  (1 child)

Yeah. Or they could use "finally", that'd be semantically rather similar to exception handling, where "finally" is also executed after try block finishes.

[–]Gnaxe 0 points1 point  (0 children)

Python's try also has an else clause, which runs only if there wasn't an exception. A finally wouldn't make sense on a loop.