Securing a future for anonymous functions in Python

Nick Coghlan ncoghlan at
Thu Dec 30 15:00:31 CET 2004

Paul Rubin wrote:
> Nick Coghlan <ncoghlan at> writes:
>>Anyway, I'm looking for feedback on a def-based syntax that came up in
>>a recent c.l.p discussion:
> Looks like just an even more contorted version of lambda.  It doesn't
> fix lambda's main deficiency which is inability to have several
> statements in the anonymous function.

Do you consider generator expressions or list comprehensions deficient because 
they don't allow several statements in the body of the for loop?


Nick Coghlan   |   ncoghlan at   |   Brisbane, Australia

More information about the Python-list mailing list