[Python-ideas] except expression

Chris Angelico rosuav at gmail.com
Thu Feb 20 05:09:34 CET 2014


On Thu, Feb 20, 2014 at 1:29 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
>> Thank you, yes. I'll add that message and move the whole idea to the
>> rejected section.
>
>
> Careful how you word that.  "Rejected" makes it sound like it won't work,
> not that it will but is not the best way.
>

What I'm rejecting is the proposal for:

statement except Expression: pass

Based on the current proposal, that won't work. It makes reasonable
sense, but we can't do everything. As Rob says, that may be better
done separately; it's really an alternative short-hand for the
statement form, not an expression form.

This will work, but is not recommended:

expression except Expression: None

That's not part of the rejected section.

ChrisA


More information about the Python-ideas mailing list