blob: 297c2e087c2e8d93864e9700f03dd38de12f45c6 [file] [log] [blame]
Jeremy Hylton62e2c7e2001-02-28 17:48:06 +00001"""This is a test"""
Fred Drake63085d42001-03-10 02:18:47 +00002
3# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
4from __future__ import nested_scopes, nested_scopes
Jeremy Hylton62e2c7e2001-02-28 17:48:06 +00005
6def f(x):
7 def g(y):
8 return x + y
9 return g
10
Neal Norwitz328f3382003-12-13 22:43:34 +000011result = f(2)(4)