For review: PEP 308 - If-then-else expression
Erik Max Francis
max at alcyone.com
Mon Feb 10 02:48:58 EST 2003
Roman Suzi wrote:
> In Python, expression is a standalone statement. So in case of
>
> if expr1: expr2 else: expr3
>
> the parser will notice the difference only at "else".
He knows that. And he's saying it's okay that that's a SyntaxError.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ No man quite believes in any other man.
\__/ H.L. Mencken
Alcyone Systems / http://www.alcyone.com/
Alcyone Systems, San Jose, California.
More information about the Python-list
mailing list