home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 July / maximum-cd-2011-07.iso / DiscContents / LibO_3.3.2_Win_x86_install_multi.exe / libreoffice1.cab / badsyntax_future7.py < prev    next >
Encoding:
Python Source  |  2011-03-15  |  196 b   |  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. result = f(2)(4)
  12.