source:
python/trunk/Lib/test/badsyntax_future5.py
Last change on this file was 2, checked in by , 15 years ago | |
---|---|
|
|
File size: 184 bytes |
Line | |
---|---|
1 | """This is a test""" |
2 | from __future__ import nested_scopes |
3 | import foo |
4 | from __future__ import nested_scopes |
5 | |
6 | |
7 | def f(x): |
8 | def g(y): |
9 | return x + y |
10 | return g |
11 | |
12 | result = f(2)(4) |
Note:
See TracBrowser
for help on using the repository browser.