[Guido]
> After a long discussion I've decided to add a shortcut conditional
> expression to Python 2.5.
>
> The syntax will be
>
>    A if C else B

 ...

> The priorities will be such that you can write
>
> ...
>   x = A if C else B if D else E

I assume this groups as

    A if C else (B if D else E)

rather than as

    (A if C else B) if D else E

?  So that C is evaluated first, and if C is true D isn't evaluated at all.

...

> Flames, pleas to reconsider, etc., to /dev/null.

Compared to the postfix

    A then C if B

it's a positive delight.

> Congratulations gracefully accepted.

Congratulations gracefully tendered.

> It's still my language! :-)

If that was in doubt, you just proved it <wink>.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to