PEP-308 left to right, c ? a else b
Marco Mariani
marco at sferacarta.com
Mon Feb 17 07:51:52 EST 2003
On Mon, Feb 17, 2003 at 01:16:44PM +0100, Marco Mariani wrote:
> What's wrong with
>
> a ? b else c
oops, it's "c ? a else b" or i'll get a thousand replies telling me I
don't really get it, just like Tim Peters proposing to ban "and" & "or"
from python :-)
> 1) it stands out more than the 'if' form when you're reading the expression
> 2) it reads left-to-right
> 3) you can't confuse it with the 'if' statement
4) the colon stays home
More information about the Python-list
mailing list