A critic of Guido's blog on Python's lambda

Frank Buss fb at frank-buss.de
Sun May 7 15:50:37 EDT 2006


Alex Martelli wrote:

> Not sure what the &key means here, but omitting that
> 
> def black_white(function, limit):
>     def result(x,y):
>         if function(x, y) > limit: return 1.0
>         else: return 0.0
>     return result

&key is something like keyword arguments in Python. And looks like you are
right again (I've tested it in Pyhton) and my assumption was wrong, so the
important thing is to support closures, which Python does, even with local
function definitions.

-- 
Frank Buss, fb at frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de



More information about the Python-list mailing list