Kaydet (Commit) dd1f6cc4 authored tarafından Fred Drake's avatar Fred Drake

Mark opcode arguments \var{} in the running text.

In IMPORT_NAME description:  "is not affect:" --> "is not affected:"
üst 8a72a7e3
...@@ -369,11 +369,11 @@ Works as \code{DELETE_NAME}, but deletes a global name. ...@@ -369,11 +369,11 @@ Works as \code{DELETE_NAME}, but deletes a global name.
%\end{opcodedesc} %\end{opcodedesc}
\begin{opcodedesc}{LOAD_CONST}{consti} \begin{opcodedesc}{LOAD_CONST}{consti}
Pushes \code{co_consts[consti]} onto the stack. Pushes \code{co_consts[\var{consti}]} onto the stack.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{LOAD_NAME}{namei} \begin{opcodedesc}{LOAD_NAME}{namei}
Pushes the value associated with \code{co_names[namei]} onto the stack. Pushes the value associated with \code{co_names[\var{namei}]} onto the stack.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{BUILD_TUPLE}{count} \begin{opcodedesc}{BUILD_TUPLE}{count}
...@@ -391,23 +391,23 @@ and set to zero by the compiler. ...@@ -391,23 +391,23 @@ and set to zero by the compiler.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{LOAD_ATTR}{namei} \begin{opcodedesc}{LOAD_ATTR}{namei}
Replaces TOS with \code{getattr(TOS,co_names[namei]}. Replaces TOS with \code{getattr(TOS,co_names[\var{namei}]}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{COMPARE_OP}{opname} \begin{opcodedesc}{COMPARE_OP}{opname}
Performs a boolean operation. The operation name can be found Performs a boolean operation. The operation name can be found
in \code{cmp_op[opname]}. in \code{cmp_op[\var{opname}]}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{IMPORT_NAME}{namei} \begin{opcodedesc}{IMPORT_NAME}{namei}
Imports the module \code{co_names[namei]}. The module object is Imports the module \code{co_names[\var{namei}]}. The module object is
pushed onto the stack. The current name space is not affect: for a pushed onto the stack. The current name space is not affected: for a
proper import statement, a subsequent \code{STORE_FAST} instruction proper import statement, a subsequent \code{STORE_FAST} instruction
modifies the name space. modifies the name space.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{IMPORT_FROM}{namei} \begin{opcodedesc}{IMPORT_FROM}{namei}
Imports the attribute \code{co_names[namei]}. The module to import Imports the attribute \code{co_names[\var{namei}]}. The module to import
from is found in TOS and left there. from is found in TOS and left there.
\end{opcodedesc} \end{opcodedesc}
...@@ -441,7 +441,7 @@ sequence, the incremented counter, and the current item onto the stack. ...@@ -441,7 +441,7 @@ sequence, the incremented counter, and the current item onto the stack.
%\end{opcodedesc} %\end{opcodedesc}
\begin{opcodedesc}{LOAD_GLOBAL}{namei} \begin{opcodedesc}{LOAD_GLOBAL}{namei}
Loads the global named \code{co_names[namei]} onto the stack. Loads the global named \code{co_names[\var{namei}]} onto the stack.
\end{opcodedesc} \end{opcodedesc}
%\begin{opcodedesc}{SET_FUNC_ARGS}{argc} %\begin{opcodedesc}{SET_FUNC_ARGS}{argc}
...@@ -464,16 +464,16 @@ Pushes a try block from a try-except clause onto the block stack. ...@@ -464,16 +464,16 @@ Pushes a try block from a try-except clause onto the block stack.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{LOAD_FAST}{var_num} \begin{opcodedesc}{LOAD_FAST}{var_num}
Pushes a reference to the local \code{co_varnames[var_num]} onto Pushes a reference to the local \code{co_varnames[\var{var_num}]} onto
the stack. the stack.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{STORE_FAST}{var_num} \begin{opcodedesc}{STORE_FAST}{var_num}
Stores TOS into the local \code{co_varnames[var_num]}. Stores TOS into the local \code{co_varnames[\var{var_num}]}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{DELETE_FAST}{var_num} \begin{opcodedesc}{DELETE_FAST}{var_num}
Deletes local \code{co_varnames[var_num]}. Deletes local \code{co_varnames[\var{var_num}]}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{SET_LINE_NO}{lineno} \begin{opcodedesc}{SET_LINE_NO}{lineno}
......
...@@ -369,11 +369,11 @@ Works as \code{DELETE_NAME}, but deletes a global name. ...@@ -369,11 +369,11 @@ Works as \code{DELETE_NAME}, but deletes a global name.
%\end{opcodedesc} %\end{opcodedesc}
\begin{opcodedesc}{LOAD_CONST}{consti} \begin{opcodedesc}{LOAD_CONST}{consti}
Pushes \code{co_consts[consti]} onto the stack. Pushes \code{co_consts[\var{consti}]} onto the stack.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{LOAD_NAME}{namei} \begin{opcodedesc}{LOAD_NAME}{namei}
Pushes the value associated with \code{co_names[namei]} onto the stack. Pushes the value associated with \code{co_names[\var{namei}]} onto the stack.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{BUILD_TUPLE}{count} \begin{opcodedesc}{BUILD_TUPLE}{count}
...@@ -391,23 +391,23 @@ and set to zero by the compiler. ...@@ -391,23 +391,23 @@ and set to zero by the compiler.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{LOAD_ATTR}{namei} \begin{opcodedesc}{LOAD_ATTR}{namei}
Replaces TOS with \code{getattr(TOS,co_names[namei]}. Replaces TOS with \code{getattr(TOS,co_names[\var{namei}]}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{COMPARE_OP}{opname} \begin{opcodedesc}{COMPARE_OP}{opname}
Performs a boolean operation. The operation name can be found Performs a boolean operation. The operation name can be found
in \code{cmp_op[opname]}. in \code{cmp_op[\var{opname}]}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{IMPORT_NAME}{namei} \begin{opcodedesc}{IMPORT_NAME}{namei}
Imports the module \code{co_names[namei]}. The module object is Imports the module \code{co_names[\var{namei}]}. The module object is
pushed onto the stack. The current name space is not affect: for a pushed onto the stack. The current name space is not affected: for a
proper import statement, a subsequent \code{STORE_FAST} instruction proper import statement, a subsequent \code{STORE_FAST} instruction
modifies the name space. modifies the name space.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{IMPORT_FROM}{namei} \begin{opcodedesc}{IMPORT_FROM}{namei}
Imports the attribute \code{co_names[namei]}. The module to import Imports the attribute \code{co_names[\var{namei}]}. The module to import
from is found in TOS and left there. from is found in TOS and left there.
\end{opcodedesc} \end{opcodedesc}
...@@ -441,7 +441,7 @@ sequence, the incremented counter, and the current item onto the stack. ...@@ -441,7 +441,7 @@ sequence, the incremented counter, and the current item onto the stack.
%\end{opcodedesc} %\end{opcodedesc}
\begin{opcodedesc}{LOAD_GLOBAL}{namei} \begin{opcodedesc}{LOAD_GLOBAL}{namei}
Loads the global named \code{co_names[namei]} onto the stack. Loads the global named \code{co_names[\var{namei}]} onto the stack.
\end{opcodedesc} \end{opcodedesc}
%\begin{opcodedesc}{SET_FUNC_ARGS}{argc} %\begin{opcodedesc}{SET_FUNC_ARGS}{argc}
...@@ -464,16 +464,16 @@ Pushes a try block from a try-except clause onto the block stack. ...@@ -464,16 +464,16 @@ Pushes a try block from a try-except clause onto the block stack.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{LOAD_FAST}{var_num} \begin{opcodedesc}{LOAD_FAST}{var_num}
Pushes a reference to the local \code{co_varnames[var_num]} onto Pushes a reference to the local \code{co_varnames[\var{var_num}]} onto
the stack. the stack.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{STORE_FAST}{var_num} \begin{opcodedesc}{STORE_FAST}{var_num}
Stores TOS into the local \code{co_varnames[var_num]}. Stores TOS into the local \code{co_varnames[\var{var_num}]}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{DELETE_FAST}{var_num} \begin{opcodedesc}{DELETE_FAST}{var_num}
Deletes local \code{co_varnames[var_num]}. Deletes local \code{co_varnames[\var{var_num}]}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{SET_LINE_NO}{lineno} \begin{opcodedesc}{SET_LINE_NO}{lineno}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment