This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Reference paragraph about the constructs that bind names needs updating for Python 3
Type: Stage:
Components: Documentation Versions: Python 3.0, Python 3.1
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: MLModel, georg.brandl
Priority: normal Keywords:

Created on 2009-03-10 16:59 by MLModel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg83439 - (view) Author: Mitchell Model (MLModel) Date: 2009-03-10 16:59
In the Python Language Reference, in the Naming and binding section of 
Execution Model, there is a paragraph that states:

The following constructs bind names: formal parameters to functions, 
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, for loop header, or in the 
second position of an except clause header. The 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.

This misdescribes the except clause, which now uses "as", and omits the 
"with ... as" construct which also binds names.
msg83647 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-03-15 21:57
Fixed in trunk in r70397 and 3k in r70398.
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49719
2009-03-15 21:57:26georg.brandlsetstatus: open -> closed

messages: + msg83647
resolution: fixed
2009-03-10 16:59:48MLModelcreate