]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document missing opcodes.
authorRaymond Hettinger <python@rcn.com>
Mon, 21 Feb 2005 20:33:50 +0000 (20:33 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 21 Feb 2005 20:33:50 +0000 (20:33 +0000)
Doc/lib/libdis.tex

index d0354c634dc7fffa2fc7b8b43ef964cc855a7ee6..0652fdb9d371822e5130bbffe9b68eab4aa9978f 100644 (file)
@@ -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