Let's Talk About Lambda Functions!
John Roth
johnroth at ameritech.net
Mon Aug 5 07:49:56 EDT 2002
"Emile van Sebille" <emile at fenx.com> wrote in message
news:89m39.786016$cQ3.120624 at sccrnsc01...
> John Roth
> > For example (and this is the example in the draft PEP on my disk)
> >
> > x = (
> > def (a, b):
> > print a
> > print b
> > )
> >
>
> I have little doubt I'm missing the point here, having just got back
> from a week off, but how does this differ from:
>
> def x(a, b):
> print a
> print b
It's an anonymous function, embedded in an expression, with full syntax.
That's something you can't do today using lambda()
John Roth
More information about the Python-list
mailing list