Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 7a41638b5b183d0b9b27449d502d0a15001134ee authored by Benjamin Peterson on 04 April 2020, 16:54:14 UTC
Bump version to 2.7.18rc1.
Tip revision: 7a41638
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