summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-04-01 21:33:55 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-04-01 21:33:55 (GMT)
commite604875b813d3ed3c11d60d97071e53ffb80871f (patch)
tree19de715f43ef92a1cb29863f6840f2b3ee07fdc3 /Doc
parent1824b59e89806febb9f5558a344e734e95e1361d (diff)
downloadcpython-e604875b813d3ed3c11d60d97071e53ffb80871f.zip
cpython-e604875b813d3ed3c11d60d97071e53ffb80871f.tar.gz
cpython-e604875b813d3ed3c11d60d97071e53ffb80871f.tar.bz2
Restore a minimal definition of execution frame, since other parts of
the manual refer to it. XXX Not sure that it belongs in this section, or that the concept is particularly important for writing documentation. Perhaps references to the frame should be removed entirely.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref4.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/ref/ref4.tex b/Doc/ref/ref4.tex
index e2bfcca..7176f20 100644
--- a/Doc/ref/ref4.tex
+++ b/Doc/ref/ref4.tex
@@ -25,6 +25,12 @@ is a code block. The string argument passed to the built-in function
The expression read and evaluated by the built-in function
\function{input()} is a code block.
+A code block is executed in an \dfn{execution
+frame}\indexii{execution}{frame}. A frame contains some
+administrative information (used for debugging) and determines where
+and how execution continues after the code block's execution has
+completed.
+
A \dfn{scope}\index{scope} defines the visibility of a name within a
block. If a local variable is defined in a block, it's scope includes
that block. If the definition occurs in a function block, the scope