[issue5469] Reference paragraph about the constructs that bind names needs updating for Python 3

Mitchell Model report at bugs.python.org
Tue Mar 10 17:59:50 CET 2009


New submission from Mitchell Model <mlm at acm.org>:

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.

----------
assignee: georg.brandl
components: Documentation
message_count: 1.0
messages: 83439
nosy: MLModel, georg.brandl
nosy_count: 2.0
severity: normal
status: open
title: Reference paragraph about the constructs that bind names needs updating for Python 3
versions: Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5469>
_______________________________________


More information about the Python-bugs-list mailing list