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
74799b49
Commit
74799b49
authored
Jun 29, 2010
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for nonlocal keyword
parent
944393ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Doc/glossary.rst
Doc/glossary.rst
+6
-4
No files found.
Doc/glossary.rst
View file @
74799b49
...
@@ -422,12 +422,14 @@ Glossary
...
@@ -422,12 +422,14 @@ Glossary
modules, respectively.
modules, respectively.
nested scope
nested scope
The ability to refer to a variable in an enclosing definition. For
The ability to refer to a variable in an enclosing definition. For
instance, a function defined inside another function can refer to
instance, a function defined inside another function can refer to
variables in the outer function. Note that nested scopes work only for
variables in the outer function. Note that nested scopes by default work
reference and not for assignment which will always write to the innermost
only for reference and not for assignment. Local variables both read and
scope. In contrast, local variables both read and write in the innermost
write in the innermost scope. Likewise, global variables read and write
scope. Likewise, global variables read and write to the global namespace.
to the global namespace. The :keyword:`nonlocal` allows writing to outer
scopes.
new-style class
new-style class
Old name for the flavor of classes now used for all class objects. In
Old name for the flavor of classes now used for all class objects. In
...
...
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