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