diff options
author | Raymond Hettinger <python@rcn.com> | 2005-02-21 20:28:07 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-02-21 20:28:07 (GMT) |
commit | 2b0d058cd58dc775513db0e97185083fa561b4ea (patch) | |
tree | 8266e1ac754fc2cbbb88bb5314c4630fd41b9737 /Doc/lib/libdis.tex | |
parent | 07359a7fed6236537e45a7f381560193274956bd (diff) | |
download | cpython-2b0d058cd58dc775513db0e97185083fa561b4ea.zip cpython-2b0d058cd58dc775513db0e97185083fa561b4ea.tar.gz cpython-2b0d058cd58dc775513db0e97185083fa561b4ea.tar.bz2 |
Document missing opcodes.
Diffstat (limited to 'Doc/lib/libdis.tex')
-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 26ba967..3af0382 100644 --- a/Doc/lib/libdis.tex +++ b/Doc/lib/libdis.tex @@ -126,6 +126,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} @@ -396,6 +400,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 |