Let's Talk About Lambda Functions!

John Roth johnroth at ameritech.net
Mon Aug 5 14:11:01 CEST 2002


"Delaney, Timothy" <tdelaney at avaya.com> wrote in message
news:mailman.1028518147.20549.python-list at python.org...
> > From: Emile van Sebille [mailto:emile at fenx.com]
> >
> > 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 more verbose, and less readable.

It also seems to be a bad example, since it doesn't really
bring anything new to the table.

John Roth






More information about the Python-list mailing list