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
53ed917d
Commit
53ed917d
authored
Apr 01, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update / simplify Identifiers section for nested scopes.
How do I create a cross reference to section 4.1?
parent
e7d5773e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
Doc/ref/ref5.tex
Doc/ref/ref5.tex
+2
-18
No files found.
Doc/ref/ref5.tex
View file @
53ed917d
...
...
@@ -63,24 +63,8 @@ categorized syntactically as atoms. The syntax for atoms is:
\index
{
name
}
\index
{
identifier
}
An identifier occurring as an atom is a reference to a local, global
or built-in name binding. If a name is assigned to anywhere in a code
block (even in unreachable code), and is not mentioned in a
\keyword
{
global
}
statement in that code block, then it refers to a local
name throughout that code block. When it is not assigned to anywhere
in the block, or when it is assigned to but also explicitly listed in
a
\keyword
{
global
}
statement, it refers to a global name if one exists,
else to a built-in name (and this binding may dynamically
change).
\footnote
{
The Python interpreter provides a useful set of
predefined built-in functions. It is not recommended to reuse
(hide) these names with self defined objects. See the
\citetitle
[../lib/built-in-funcs.html]
{
Python Library Reference
}
for
the descriptions of built-in functions and methods.
}
\indexii
{
name
}{
binding
}
\index
{
code block
}
\stindex
{
global
}
\indexii
{
built-in
}{
name
}
\indexii
{
global
}{
name
}
An identifier occurring as an atom is a name. See Section 4.1 for
documentation of naming and binding.
When the name is bound to an object, evaluation of the atom yields
that object. When a name is not bound, an attempt to evaluate it
...
...
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