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

Richard Jones rjones at ekit-inc.com
Sat Feb 8 00:52:10 EST 2003


On Sat, 8 Feb 2003 3:03 pm, Andrew Koenig wrote:
> Richard> 1. Python already has the required functionality, just in
> Richard> another form (ie.  not as an expression, but as a statement)
>
> Exactly the same argument applies to lambda expressions and list
> comprehensions.

Absolutely. Guido regrets lambdas, and I don't believe list comprehensions 
were a necessary addition to the language. Disclaimer: doesn't stop me using 
either, but I could just as easily use some other form.


    Richard






More information about the Python-list mailing list