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_future4.py < prev    next >
Encoding:
Python Source  |  2011-03-15  |  153 b   |  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. result = f(2)(4)
  11.