Lambda forms and scoping

alex goretoy aleksandr.goretoy at gmail.com
Sat Mar 21 03:16:00 CET 2009


i looks at lambdas as unbound functions(or super function), in the case
above we create the functions in a list places it in memory unboud, once
binding a call to the memory address space it returns the value

it is basically same as doing this:
def f():
    print "f"

a=f #unbound function, same as rename function
a() #bind call to address space

hope this helps

-Alex Goretoy
http://www.goretoy.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090320/76b2dc87/attachment.html>


More information about the Python-list mailing list