Conditional operator in Python?

Erik Max Francis max at
Wed Sep 5 04:52:23 CEST 2001

Marcin 'Qrczak' Kowalczyk wrote:

> Or
>     if (X) Y else Z
> which looks like statement if without colons (but parens are
> required).

I'm not comfortable with the required syntactic parentheses, since
there's nothing else in the language like that.

 Erik Max Francis / max at /
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Consistency is the last refuge of the unimaginative.
\__/ Oscar Wilde
    The laws list /
 Laws, rules, principles, effects, paradoxes, etc. in physics.

More information about the Python-list mailing list