File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ \subsection{Python Byte Code Instructions}
126126Indicates 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}{}
130134Removes the top-of-stack (TOS) item.
131135\end {opcodedesc }
@@ -396,6 +400,10 @@ \subsection{Python Byte Code Instructions}
396400instruction).
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}{}
400408Pushes a reference to the locals of the current scope on the stack.
401409This is used in the code for a class definition: After the class body
You can’t perform that action at this time.
0 commit comments