Multi-line lambda proposal.

Carl Banks invalidemail at
Tue May 9 20:41:13 CEST 2006

DH wrote:
> Kaz Kylheku wrote:
> > I've been reading the recent cross-posted flamewar, and read Guido's
> > article where he posits that embedding multi-line lambdas in
> > expressions is an unsolvable puzzle.
> To say that multi-line lambda is an unsolvable problem is completely
> absurd.

Note that the "solution" is understood to entail the BDFL stamp of

 Furthermore it has already been solved.

Meh.  I think the syntax you linked to would result in gobs of ugly and
unreadable code.  I like how the examples are always part of relatively
simple statements ("Look, it's readable!").  Try citing examples of
these statements at work in if conditions, generator expressions, as
default arguments to functions, multiple times in the same statement.
Try showing what they look like nested.  The "readable" example would
turn into ASCII vomit.

Probably the day it makes it into Python is the day Python jumps the

Carl Banks

More information about the Python-list mailing list