diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-01 20:52:24 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-01 20:52:24 (GMT) |
commit | 53ed917d3a6bc82115c7b16d884330137f511f52 (patch) | |
tree | e73495fcf7f8e3c1d21b19ee6f35a24899c3ee2f /Doc/ref/ref5.tex | |
parent | e7d5773ed053cfd86540d67b64f6c2aa2382da1a (diff) | |
download | cpython-53ed917d3a6bc82115c7b16d884330137f511f52.zip cpython-53ed917d3a6bc82115c7b16d884330137f511f52.tar.gz cpython-53ed917d3a6bc82115c7b16d884330137f511f52.tar.bz2 |
Update / simplify Identifiers section for nested scopes.
How do I create a cross reference to section 4.1?
Diffstat (limited to 'Doc/ref/ref5.tex')
-rw-r--r-- | Doc/ref/ref5.tex | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index fb8e3dd..8fae716 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -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 |