[IronPython] Nested Functions

Kirk Olynyk Kirk.Olynyk at microsoft.com
Fri Sep 23 15:34:22 PDT 2005


# This works on CPython but not on IronPython 9.2

 

def f (i):

    def g ():

        return i+1

    return g()

print f(3)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/users-ironpython.com/attachments/20050923/15bf689c/attachment.html


More information about the users-ironpython.com mailing list