Jeremy Hylton | 62e2c7e | 2001-02-28 17:48:06 +0000 | [diff] [blame] | 1 | """This is a test""" |
Fred Drake | 63085d4 | 2001-03-10 02:18:47 +0000 | [diff] [blame] | 2 | |
3 | # Import the name nested_scopes twice to trigger SF bug #407394 (regression). | ||||
4 | from __future__ import nested_scopes, nested_scopes | ||||
Jeremy Hylton | 62e2c7e | 2001-02-28 17:48:06 +0000 | [diff] [blame] | 5 | |
6 | def f(x): | ||||
7 | def g(y): | ||||
8 | return x + y | ||||
9 | return g | ||||
10 | |||||
Neal Norwitz | 328f338 | 2003-12-13 22:43:34 +0000 | [diff] [blame^] | 11 | result = f(2)(4) |