Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b0d058

Browse files
committed
Document missing opcodes.
1 parent 07359a7 commit 2b0d058

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/lib/libdis.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ \subsection{Python Byte Code Instructions}
126126
Indicates end-of-code to the compiler, not used by the interpreter.
127127
\end{opcodedesc}
128128

129+
\begin{opcodedesc}{NOP}{}
130+
Do nothing code. Used as a placeholder by the bytecode optimizer.
131+
\end{opcodedesc}
132+
129133
\begin{opcodedesc}{POP_TOP}{}
130134
Removes the top-of-stack (TOS) item.
131135
\end{opcodedesc}
@@ -396,6 +400,10 @@ \subsection{Python Byte Code Instructions}
396400
instruction).
397401
\end{opcodedesc}
398402

403+
\begin{opcodedesc}{LIST_APPEND}{}
404+
Calls \code{list.append(TOS1, TOS)}. Used to implement list comprehensions.
405+
\end{opcodedesc}
406+
399407
\begin{opcodedesc}{LOAD_LOCALS}{}
400408
Pushes a reference to the locals of the current scope on the stack.
401409
This is used in the code for a class definition: After the class body

0 commit comments

Comments
 (0)