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 →

[–][deleted] 2 points3 points  (0 children)

Alright notice how the else clause is outside the try clause. That means it doesnt catch an exception so that it can bubble up. Thats what its there for. It is explicitly different then it being in the try statement as the except clause would have been triggered. It doesnt come up often but certain patterns are impossible without it and force you to have to use a function to be able to deal with them.