home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / pythonwin / python.exe / BADSYNTAX_FUTURE7.PY < prev    next >
Encoding:
Python Source  |  2001-04-18  |  204 b   |  12 lines

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