home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003: The Beautiful Scenery / enter-parhaat-2003.iso / files / Python-2.2.1.exe / BADSYNTAX_FUTURE5.PY < prev    next >
Encoding:
Python Source  |  2001-04-17  |  193 b   |  13 lines

  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. print f(2)(4)
  13.