summaryrefslogtreecommitdiffstats
path: root/Lib/test/badsyntax_future7.py
blob: 370372d4596299d2ebc11a244a8f36b83dcb5754 (plain)
1
2
3
4
5
6
7
8
9
10
11
"""This is a test"""

from __future__ import nested_scopes; import string; from __future__ import \
     nested_scopes

def f(x):
    def g(y):
        return x + y
    return g

print f(2)(4)