block/lambda

John Nagle nagle at animats.com
Tue Jul 29 02:08:32 EDT 2008


iu2 wrote:
> Hi,
> 
> Playing with imitating lambdas and ruby blocks in Python, I came up
> with a very simple construct, for example:
> 
> import compiler

    Python supports nested functions.  You don't have to use a lambda
form just to get a local function.  Just write an ordinary nested
def within another def.

					John Nagle



More information about the Python-list mailing list