anonymous functions/expressions without lambda?

Dave Benjamin ramen at lackingtalent.com
Thu Apr 28 15:55:46 EDT 2005


Dave Benjamin wrote:
> You could use a combination of bound methods and the "curry" function 
> defined in the Python Cookbook:
> 
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52549
> 
> The examples in the discussion do just that.

Also, in the CVS version of Python, there's a new module called 
"functional" with a function called "partial" that does the same thing 
as far as I can tell. So, in the future, this function will probably be 
available in the standard library.

Dave



More information about the Python-list mailing list