Kaydet (Commit) 7f157864 authored tarafından Georg Brandl's avatar Georg Brandl

Merged revisions 70397 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70397 | georg.brandl | 2009-03-15 22:53:56 +0100 (So, 15 Mär 2009) | 1 line

  #5469: add with statement to list of name-binding constructs.
........
üst 93095831
...@@ -86,9 +86,10 @@ subclass of :exc:`NameError`. ...@@ -86,9 +86,10 @@ subclass of :exc:`NameError`.
The following constructs bind names: formal parameters to functions, The following constructs bind names: formal parameters to functions,
:keyword:`import` statements, class and function definitions (these bind the :keyword:`import` statements, class and function definitions (these bind the
class or function name in the defining block), and targets that are identifiers 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 if occurring in an assignment, :keyword:`for` loop header, or after
position of an :keyword:`except` clause header. The :keyword:`import` statement :keyword:`as` in a :keyword:`with` statement or :keyword.`except` clause.
of the form "``from ...import *``" binds all names defined in the imported 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 module, except those beginning with an underscore. This form may only be used
at the module level. at the module level.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment