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

from __future__ import nested_scopes; import site  # noqa: F401

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

result = f(2)(4)