[Python-ideas] except expression

Chris Angelico rosuav at gmail.com
Thu Feb 13 12:50:36 CET 2014


On Thu, Feb 13, 2014 at 10:36 PM, Paul Moore <p.f.moore at gmail.com> wrote:
> Personally, I quite like "EXPR except EXCEPTIONTYPE return VALUE" if
> we have to stick with existing keywords. If I had free rein I might go
> for a new keyword "then" instead of "return".

Hmm. Stupid idea:

EXPR expr EXCEPTIONTYPE pass VALUE

Passing something is kinda like returning it, right? *ducks the rotten tomatoes*

ChrisA


More information about the Python-ideas mailing list