source:
trunk/essentials/dev-lang/python/Lib/test/badsyntax_future6.py@
3326
| Last change on this file since 3326 was 3225, checked in by , 19 years ago | |
|---|---|
| File size: 161 bytes | |
| Line | |
|---|---|
| 1 | """This is a test""" |
| 2 | "this isn't a doc string" |
| 3 | from __future__ import nested_scopes |
| 4 | |
| 5 | def f(x): |
| 6 | def g(y): |
| 7 | return x + y |
| 8 | return g |
| 9 | |
| 10 | result = f(2)(4) |
Note:
See TracBrowser
for help on using the repository browser.
