[Python-ideas] exception based conditional expression, similar to if-else conditional expression
masklinn at masklinn.net
Thu Aug 20 16:50:25 CEST 2009
On 20 Aug 2009, at 16:27 , Jeff McAninch wrote:
> Seems to me try-except is kind of sticking out here, and I've
> tried to show what I think are natural and common places where
> a try-except expression would be appropriate.
Let me be clear (apparently I wasn't clear enough): I'm not arguing
against a try/except expression (or, indeed, any expression). I'm
arguing against creating a brand new expression instead of trying to
find a way to make the current statements into expressions, which I
think would be both clearer and better for the language as a whole.
More information about the Python-ideas