[IronPython] Nested Functions

Kirk Olynyk Kirk.Olynyk at microsoft.com
Sat Sep 24 00:34:22 CEST 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: <http://mail.python.org/pipermail/ironpython-users/attachments/20050923/15bf689c/attachment.html>


More information about the Ironpython-users mailing list