diff options
author | Raymond Hettinger <python@rcn.com> | 2005-02-21 20:33:50 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-02-21 20:33:50 (GMT) |
commit | fa141f3014d3b3c092f4a3f026a52a6374824c12 (patch) | |
tree | d69f2a1201264ba88b1a630772ffe764e09a6959 | |
parent | 3adf5220ac93538e7696885b10996f835504a490 (diff) | |
download | cpython-fa141f3014d3b3c092f4a3f026a52a6374824c12.zip cpython-fa141f3014d3b3c092f4a3f026a52a6374824c12.tar.gz cpython-fa141f3014d3b3c092f4a3f026a52a6374824c12.tar.bz2 |
Document missing opcodes.
-rw-r--r-- | Doc/lib/libdis.tex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/lib/libdis.tex b/Doc/lib/libdis.tex index d0354c6..0652fdb 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 |