better lambda support in the future?

Steven Bethard steven.bethard at
Fri Dec 17 22:43:56 CET 2004

Fredrik Lundh wrote:
> I'm not sure what "func" is supposed to be in your examples...

Just an extra variable used to make sure that the lambda was being used 
in a context (i.e. in an expression) where a simple def wouldn't 
suffice.  If the example is confusing, consider the dict example 
instead.  It makes it clearer that the lambdas are being used in places 
where an expression is required.


More information about the Python-list mailing list