For review: PEP 308 - If-then-else expression
Skip Montanaro
skip at pobox.com
Fri Feb 7 17:57:15 EST 2003
On Fri, 7 Feb 2003, Guido van Rossum wrote:
> The proposed syntax is as follows:
> <expression1> if <condition> else <expression2>
+0 from me. For the times I've needed such a construct
<cond> and <expr1> or <expr2>
has generally been sufficient. I don't see that the new syntax adds enough
to make it worthwhile, but I can ignore it as well as the next person. I'm
definitely -1 on the chained variation with "elif".
Skip
More information about the Python-list
mailing list