For review: PEP 308 - If-then-else expression
Michele Simionato
mis6 at pitt.edu
Sat Feb 8 18:30:03 EST 2003
Erik Max Francis <max at alcyone.com> wrote in message news:<3E455707.84A721BA at alcyone.com>...>
> (if cond: expression1 else: expression2)
>
> That really doesn't strike me as so bad. Particularly if most of the
> objections center around overloading the meaning of if, or the
> awkwardness of reading the proposed x if p else y structure not reading
> left-to-right, maybe this makes sense after all?
This would me acceptable to me, even if it is not the most elegant
proposal I have seen. Too many parenthesis and colons for my taste,
but it has the advantage of requiring no new notation, at least.
M.
More information about the Python-list
mailing list