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_future6.py < prev    next >
Encoding:
Python Source  |  2011-02-15  |  161 b   |  11 lines

  1. """This is a test"""
  2. "this isn't a doc string"
  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.