home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 June / PCWorld_2005-06_cd.bin / software / vyzkuste / firewally / firewally.exe / framework-2.3.exe / badsyntax_future4.py < prev    next >
Text File  |  2003-12-30  |  150b  |  11 lines

  1. """This is a test"""
  2. import __future__
  3. from __future__ import nested_scopes
  4.  
  5. def f(x):
  6.     def g(y):
  7.         return x + y
  8.     return g
  9.  
  10. print f(2)(4)
  11.