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

Erik Max Francis max at
Sat Feb 8 06:19:38 CET 2003

Andrew Koenig wrote:

> Exactly the same argument applies to lambda expressions and list
> comprehensions.

And practically every language feature that's been added since the
earliest version.  Most languages can be boiled down to a tiny subset of
their basic control structures that are exactly as expressive (in the
Turing-complete sort of meaning) as the original, but that hardly means
that the extra syntaxes (such as the for control structure in Python;
you can write than in terms of a while) are mere syntactical sugar.

 Erik Max Francis / max at /
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ The doors of Heaven and Hell are adjacent and identical.
\__/ Nikos Kazantzakis Return to Wolfenstein /
 A personal guide to Return to Castle Wolfenstein.

More information about the Python-list mailing list