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

# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
from __future__ import nested_scopes, nested_scopes

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

print f(2)(4)