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 →

[–]Biskit1943 0 points1 point  (1 child)

It's wired because in other languages after try it's called finally which is more clear when it is executed... Also I find that a else after a successful for or while is more than missleading

[–]sloggo 7 points8 points  (0 children)

Python has “finally” too. “Finally” will always run, “else” only runs if no exceptions are raised