test_future1.py 226 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 11

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

print f(2)(4)