home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 January / maximum-cd-2009-01.iso / DiscContents / OOo_3.0.0_Win32Intel_install_wJRE_en-US.exe / openofficeorg1.cab / badsyntax_future3.py < prev    next >
Encoding:
Python Source  |  2008-07-29  |  169 b   |  11 lines

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