For review: PEP 308 - If-then-else expression
Erik Max Francis
max at alcyone.com
Sat Feb 8 05:40:20 EST 2003
Simon Burton wrote:
> Perhaps the "else <expr2>" can default to "else None".
This is the one direction in which I really think the proposal shouldn't
go. Explicit is better than implicit; if you mean x if p, or some other
thing, you should write what you mean: x if p else None.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ If anything is sacred, the human body is sacred.
\__/ Walt Whitman
ZOE / http://www.alcyone.com/pyos/zoe/
A simple Python OpenGL rendering engine.
More information about the Python-list
mailing list