Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 29360893df0931703cb2fe0c0fbc0fc963e64ead authored by Georg Brandl on 20 February 2011, 10:31:59 UTC
Make a 3.2 maintenance branch.
Tip revision: 2936089
test_future1.py
"""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

result = f(2)(4)
back to top