test_future1.py 229 B

1234567891011
  1. """This is a test"""
  2. # Import the name nested_scopes twice to trigger SF bug #407394 (regression).
  3. from __future__ import nested_scopes, nested_scopes
  4. def f(x):
  5. def g(y):
  6. return x + y
  7. return g
  8. result = f(2)(4)