what is lambda used for in real code?

Alex Martelli aleaxit at yahoo.com
Sat Jan 1 12:41:25 EST 2005

Steve Holden <steve at holdenweb.com> wrote:

> Adam DePrince wrote:
> [...]
> > 
> > In sort, we must preserve the ability to create an anonymous function
> > simply because we can do so for every other object type, and functions
> > are not special enough to permit this special case.
> > 
> And you'd create an anonymous type how, exactly?

>>> type('',(),{})
<class '__main__.'>



More information about the Python-list mailing list