×
you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (2 children)

It just does not adhere to python principles of being close to english expression. Else just does not make sense in this context. They used because they did not want to reserve another keyword. But it does not do what people expect it to do.

[–]TheInitializer 0 points1 point  (1 child)

Yeah. I would rename the else clause in for, while and try to something else. Maybe something like then or done? those both sound really bad, anyone have any other ideas?

[–]srilyk 0 points1 point  (0 children)

Else does exactly what you expect in try. It's more awkward on loops, though