cpython/Lib/test/test_future2.py
Jeremy Hylton 62e2c7e3df Add regression test for future statements. This adds eight files, but
seven are not tests in their own right; these files are mentioned in
regrtest.
2001-02-28 17:48:06 +00:00

11 lines
148 B
Python

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