summaryrefslogtreecommitdiff
path: root/Lib/test/badsyntax_future7.py
blob: 131db2c2164cf27164b8a062a9379c87d29ed681 (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

result = f(2)(4)