John Nagle nagle at
Tue Jul 29 08:08:32 CEST 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