[Python-ideas] except expression
Chris Angelico
rosuav at gmail.com
Tue Feb 18 07:27:09 CET 2014
On Tue, Feb 18, 2014 at 5:23 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Chris Angelico wrote:
>>
>> Conceptually, it's easy to say
>> "inner scope". If it turns out that it's really REALLY hard to do
>> that, then rejecting 'as' could be a fall-back. But I'd really rather
>> keep it.
>
>
> Do you have any non-contrived use cases in mind for 'as' in an
> except-expression? I'm having trouble thinking of any.
There are a few in the current PEP draft now. Fetching info out of an
exception isn't uncommon.
ChrisA
More information about the Python-ideas
mailing list