[Python-checkins] r70397 - python/trunk/Doc/reference/executionmodel.rst
georg.brandl
python-checkins at python.org
Sun Mar 15 22:53:56 CET 2009
Author: georg.brandl
Date: Sun Mar 15 22:53:56 2009
New Revision: 70397
Log:
#5469: add with statement to list of name-binding constructs.
Modified:
python/trunk/Doc/reference/executionmodel.rst
Modified: python/trunk/Doc/reference/executionmodel.rst
==============================================================================
--- python/trunk/Doc/reference/executionmodel.rst (original)
+++ python/trunk/Doc/reference/executionmodel.rst Sun Mar 15 22:53:56 2009
@@ -87,9 +87,10 @@
The following constructs bind names: formal parameters to functions,
:keyword:`import` statements, class and function definitions (these bind the
class or function name in the defining block), and targets that are identifiers
-if occurring in an assignment, :keyword:`for` loop header, or in the second
-position of an :keyword:`except` clause header. The :keyword:`import` statement
-of the form "``from ...import *``" binds all names defined in the imported
+if occurring in an assignment, :keyword:`for` loop header, in the second
+position of an :keyword:`except` clause header or after :keyword:`as` in a
+:keyword:`with` statement. The :keyword:`import` statement
+of the form ``from ... import *`` binds all names defined in the imported
module, except those beginning with an underscore. This form may only be used
at the module level.
More information about the Python-checkins
mailing list