home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 June / maximum-cd-2011-06.iso / DiscContents / LibO_3.3.1_Win_x86_install_multi.exe / libreoffice1.cab / badsyntax_future5.py < prev    next >
Encoding:
Python Source  |  2011-02-15  |  184 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. result = f(2)(4)
  13.