[Python-ideas] except expression

Steven D'Aprano steve at pearwood.info
Fri Feb 21 01:04:12 CET 2014


On Thu, Feb 20, 2014 at 12:18:07PM +1100, Chris Angelico wrote:

> Time to open up this branch of the discussion... colon or arrow?

> result = 1/x except ZeroDivisionError -> NaN
> result = 1/x except ZeroDivisionError: NaN

+1 for the colon.

+0.8 for the arrow.

-- 
Steven


More information about the Python-ideas mailing list