For review: PEP 308 - If-then-else expression

Erik Max Francis max at alcyone.com
Tue Feb 11 01:52:51 CET 2003


"Anders J. Munch" wrote:

>  parenth_form ::=
>               "(" [if_expr_list] ")"

I'm not sure why you need a special form for the parenthesized
conditional.  Surely the conditional operator would itself simply be an
expression, so it would be handled by a (presumably already existing)
basic "(" expr ")" rule.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Whoever contends with the great sheds his own blood.
\__/ Sa'di
    Polly Wanna Cracka? / http://www.pollywannacracka.com/
 The Internet resource for interracial relationships.




More information about the Python-list mailing list