summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-21 20:33:50 +0000
committerRaymond Hettinger <python@rcn.com>2005-02-21 20:33:50 +0000
commitbe3727b4da430a5026f8b743af6cd6678ac9e738 (patch)
tree8aa257d251c6547cfaf1b6fa424a56076d99b004 /Doc
parent02a106434f352049ba61af0f27c61ba485c49385 (diff)
downloadcpython-be3727b4da430a5026f8b743af6cd6678ac9e738.tar.gz
Document missing opcodes.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libdis.tex8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/lib/libdis.tex b/Doc/lib/libdis.tex
index d0354c634d..0652fdb9d3 100644
--- a/Doc/lib/libdis.tex
+++ b/Doc/lib/libdis.tex
@@ -122,6 +122,10 @@ instructions.
Indicates end-of-code to the compiler, not used by the interpreter.
\end{opcodedesc}
+\begin{opcodedesc}{NOP}{}
+Do nothing code. Used as a placeholder by the bytecode optimizer.
+\end{opcodedesc}
+
\begin{opcodedesc}{POP_TOP}{}
Removes the top-of-stack (TOS) item.
\end{opcodedesc}
@@ -392,6 +396,10 @@ is the address to jump to (which should be a \code{FOR_ITER}
instruction).
\end{opcodedesc}
+\begin{opcodedesc}{LIST_APPEND}{}
+Calls \code{list.append(TOS1, TOS)}. Used to implement list comprehensions.
+\end{opcodedesc}
+
\begin{opcodedesc}{LOAD_LOCALS}{}
Pushes a reference to the locals of the current scope on the stack.
This is used in the code for a class definition: After the class body