Let's Talk About Lambda Functions!

Delaney, Timothy tdelaney at avaya.com
Mon Aug 5 05:28:22 CEST 2002


> 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.

Tim Delaney




More information about the Python-list mailing list