replacing `else` with `then` in `for` and `try`

Alexey Muranov alexey.muranov at gmail.com
Wed Nov 1 17:12:41 EDT 2017


Hello,

what do you think about the idea of replacing "`else`" with "`then`" in 
the contexts of `for` and `try`?

It seems clear that it should be rather "then" than "else."  Compare 
also "try ... then ... finally" with "try ... else ... finally".

Currently, with "else", it is almost impossible to guess the meaning 
without looking into the documentation.

Off course, it should not be changed in Python 3, maybe in Python 4 or 
5, but in Python 3 `then` could be an alias of `else` in these contexts.

Alexey.




More information about the Python-list mailing list