Message83439
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. |
|
Date |
User |
Action |
Args |
2009-03-10 16:59:50 | MLModel | set | recipients:
+ MLModel, georg.brandl |
2009-03-10 16:59:50 | MLModel | set | messageid: <1236704390.32.0.698658997265.issue5469@psf.upfronthosting.co.za> |
2009-03-10 16:59:48 | MLModel | link | issue5469 messages |
2009-03-10 16:59:47 | MLModel | create | |
|