2001-02-28 17:48:06 +00:00
|
|
|
"""This is a test"""
|
2001-03-10 02:18:47 +00:00
|
|
|
|
|
|
|
# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
|
|
|
|
from __future__ import nested_scopes, nested_scopes
|
2001-02-28 17:48:06 +00:00
|
|
|
|
|
|
|
def f(x):
|
|
|
|
def g(y):
|
|
|
|
return x + y
|
|
|
|
return g
|
|
|
|
|
2003-12-13 22:43:34 +00:00
|
|
|
result = f(2)(4)
|