home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 #2 / K-CD-2-2004.ISO / OpenOffice Sv / f_0397 / python-core-2.2.2 / lib / test / badsyntax_future6.py < prev    next >
Encoding:
Python Source  |  2003-07-18  |  158 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. print f(2)(4)
  11.