cpython/Lib/test/future_test2.py

11 lines
149 B
Python

"""This is a test"""
from __future__ import nested_scopes; import site
def f(x):
def g(y):
return x + y
return g
result = f(2)(4)