home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / python / 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.