Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
173c1f1a
Commit
173c1f1a
authored
Mar 15, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#5469: add with statement to list of name-binding constructs.
parent
09827eb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Doc/reference/executionmodel.rst
Doc/reference/executionmodel.rst
+4
-3
No files found.
Doc/reference/executionmodel.rst
View file @
173c1f1a
...
@@ -87,9 +87,10 @@ subclass of :exc:`NameError`.
...
@@ -87,9 +87,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, in the second
position of an :keyword:`except` clause header. The :keyword:`import` statement
position of an :keyword:`except` clause header or after :keyword:`as` in a
of the form "``from ...import *``" binds all names defined in the imported
: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
module, except those beginning with an underscore. This form may only be used
at the module level.
at the module level.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment