Conditional operator in Python?
Erik Max Francis
max at alcyone.com
Tue Sep 4 22:52:23 EDT 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 alcyone.com / http://www.alcyone.com/max/
__ 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 / http://www.alcyone.com/max/physics/laws/
Laws, rules, principles, effects, paradoxes, etc. in physics.
More information about the Python-list
mailing list