Re: [Python-Dev] What's the status of PEP 505: None-aware operators?

2017年11月30日 11:50:07 -0800

On Fri, Dec 1, 2017 at 5:45 AM, Tres Seaver <[email protected]> wrote:
>> I would *not* add any spelling for an explicit bare-except equivalent.
>> You would have to write:
>>
>> val = name.strip()[4:].upper() except Exception as -1
>
>
> Wouldn't that really need to be this instead, for a true 'except:' 
> equivalence:
>
> val = name.strip()[4:].upper() except BaseException as -1
>
Read the rejected PEP 463 for all the details and arguments. All this
has been gone into.
ChrisA
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to