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

Jason Harper JasonHarper at pobox.com
Sat Feb 8 19:55:24 EST 2003


And now for something completely different:

	EXPR1 (or EXPR2 if COND)

Unambiguous, although I'm not sure that the current parser can
distinguish it from a function call.

The condition isn't between the expressions, which looks strange to me.

It can be chained for as many conditions as desired.
	Jason Harper




More information about the Python-list mailing list