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_future7.py < prev    next >
Text File  |  2003-12-30  |  193b  |  12 lines

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