replacing `else` with `then` in `for` and `try`
Alexey Muranov
alexey.muranov at gmail.com
Thu Nov 2 04:21:51 EDT 2017
On Thu, 2017-11-02 at 08:21 +1100, Chris Angelico wrote:
> >
> >
> With try/except/else, it's "do this, and if an exception happens, do
> this, else do this". So else makes perfect sense.
Indeed, i forgot about `except`. I agree that
"try/then/except/finally" would be better than
"try/except/then/finally", but "try/except/else/finally" does not make
a perfect sense IMHO.
Alexey.
More information about the Python-list
mailing list