future_test1.py 229 Bytes
Newer Older
1
"""This is a test"""
2 3 4

# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
from __future__ import nested_scopes, nested_scopes
5 6 7 8 9 10

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

11
result = f(2)(4)