home *** CD-ROM | disk | FTP | other *** search
/ Freelog 33 / Freelog033.iso / Progr / Python-2.2.1.exe / BADSYNTAX_FUTURE3.PY < prev    next >
Encoding:
Python Source  |  2001-04-18  |  179 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.