home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Welt 2005 March
/
PCWELT_3_2005.ISO
/
pcwsoft
/
framework-2.2.exe
/
test_future1.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2003-12-30
|
226 b
|
12 lines
"""This is a test"""
# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
from __future__ import nested_scopes, nested_scopes
def f(x):
def g(y):
return x + y
return g
print f(2)(4)