A replacement for lambda

Paul Rubin http
Sat Jul 30 10:10:30 CEST 2005

D H <no at spam> writes:
>             where fdel = def (self):
>                          ...........
> As you can see, it doesn't save much over the traditional way since
> you have to name the "anonymous" lambdas anyway.

It saves polluting the surrounding namespace with superfluous variables
that aren't going to be used again.

More information about the Python-list mailing list