GNU Info

Info Node: (python2.1-ref.info)Future statements and nested scopes

(python2.1-ref.info)Future statements and nested scopes


Next: History and License Prev: Top-level components Up: Top
Enter node , (file) or (file)node

Future statements and nested scopes
***********************************

This manual section was written by Jeremy Hylton <jeremy@alum.mit.edu>.
The semantics of Python's static scoping will change in version 2.2 to
support resolution of unbound local names in enclosing functions'
namespaces.  The new semantics will be available in Python 2.1 through
the use of a future statement.  This appendix documents these two
features for Python 2.1; it will be removed in Python 2.2 and the
features will be documented in the main sections of this manual.

Future statements
__future__
Nested scopes

automatically generated by info2www version 1.2.2.9