home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 October / enter-2005-10.iso / files / OOo_2.0_windows_install_fi.exe / openofficeorg4.cab / test_future1.py < prev    next >
Encoding:
Python Source  |  2005-10-15  |  226 b   |  12 lines

  1. """This is a test"""
  2.  
  3. # Import the name nested_scopes twice to trigger SF bug #407394 (regression).
  4. from __future__ import nested_scopes, 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.