[Python-ideas] except expression

MRAB python at mrabarnett.plus.com
Thu Feb 20 14:06:41 CET 2014


On 2014-02-20 01:18, Chris Angelico wrote:
> On Thu, Feb 20, 2014 at 11:15 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
>> result = 1/x except ZeroDivisionError -> NaN
>>
>> For the record, I could just as easily live with the colon instead of the
>> arrow.
>>
>
> Time to open up this branch of the discussion... colon or arrow?
>
[snip]

I definitely prefer the colon.


More information about the Python-ideas mailing list