mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +00:00
Arg; more nits, but I may as well finish the job.
Removed the large comment remaining from the template documentation section; the template tells us to remove these once they're not needed. Remove some trailing whitespace from VM instruction pseudo-code.
This commit is contained in:
parent
7381e28399
commit
1cf87496a6
2 changed files with 12 additions and 40 deletions
|
|
@ -35,20 +35,6 @@ The \code{dis} module defines the following functions:
|
||||||
|
|
||||||
\renewcommand{\indexsubitem}{(in module dis)}
|
\renewcommand{\indexsubitem}{(in module dis)}
|
||||||
|
|
||||||
% ---- 3.2. ----
|
|
||||||
% For each function, use a ``funcdesc'' block. This has exactly two
|
|
||||||
% parameters (each parameters is contained in a set of curly braces):
|
|
||||||
% the first parameter is the function name (this automatically
|
|
||||||
% generates an index entry); the second parameter is the function's
|
|
||||||
% argument list. If there are no arguments, use an empty pair of
|
|
||||||
% curly braces. If there is more than one argument, separate the
|
|
||||||
% arguments with backslash-comma. Optional parts of the parameter
|
|
||||||
% list are contained in \optional{...} (this generates a set of square
|
|
||||||
% brackets around its parameter). Arguments are automatically set in
|
|
||||||
% italics in the parameter list. Each argument should be mentioned at
|
|
||||||
% least once in the description; each usage (even inside \code{...})
|
|
||||||
% should be enclosed in \var{...}.
|
|
||||||
|
|
||||||
\begin{funcdesc}{dis}{\optional{bytesource}}
|
\begin{funcdesc}{dis}{\optional{bytesource}}
|
||||||
Disassemble the \var{bytesource} object. \var{bytesource} can denote
|
Disassemble the \var{bytesource} object. \var{bytesource} can denote
|
||||||
either a class, a method, a function, or a code object. For a class,
|
either a class, a method, a function, or a code object. For a class,
|
||||||
|
|
@ -196,27 +182,27 @@ Implements \code{TOS = TOS1 - TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_SUBSCR}{}
|
\begin{opcodedesc}{BINARY_SUBSCR}{}
|
||||||
Implements \code{TOS = TOS1[TOS] }.
|
Implements \code{TOS = TOS1[TOS]}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_LSHIFT}{}
|
\begin{opcodedesc}{BINARY_LSHIFT}{}
|
||||||
Implements \code{TOS = TOS1 << TOS }.
|
Implements \code{TOS = TOS1 << TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_RSHIFT}{}
|
\begin{opcodedesc}{BINARY_RSHIFT}{}
|
||||||
Implements \code{TOS = TOS1 >> TOS }.
|
Implements \code{TOS = TOS1 >> TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_AND}{}
|
\begin{opcodedesc}{BINARY_AND}{}
|
||||||
Implements \code{TOS = TOS1 and TOS }.
|
Implements \code{TOS = TOS1 and TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_XOR}{}
|
\begin{opcodedesc}{BINARY_XOR}{}
|
||||||
Implements \code{TOS = TOS1 \^{ }TOS }.
|
Implements \code{TOS = TOS1 \^{ }TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_OR}{}
|
\begin{opcodedesc}{BINARY_OR}{}
|
||||||
Implements \code{TOS = TOS1 or TOS }.
|
Implements \code{TOS = TOS1 or TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
The slice opcodes take up to three parameters.
|
The slice opcodes take up to three parameters.
|
||||||
|
|
|
||||||
|
|
@ -35,20 +35,6 @@ The \code{dis} module defines the following functions:
|
||||||
|
|
||||||
\renewcommand{\indexsubitem}{(in module dis)}
|
\renewcommand{\indexsubitem}{(in module dis)}
|
||||||
|
|
||||||
% ---- 3.2. ----
|
|
||||||
% For each function, use a ``funcdesc'' block. This has exactly two
|
|
||||||
% parameters (each parameters is contained in a set of curly braces):
|
|
||||||
% the first parameter is the function name (this automatically
|
|
||||||
% generates an index entry); the second parameter is the function's
|
|
||||||
% argument list. If there are no arguments, use an empty pair of
|
|
||||||
% curly braces. If there is more than one argument, separate the
|
|
||||||
% arguments with backslash-comma. Optional parts of the parameter
|
|
||||||
% list are contained in \optional{...} (this generates a set of square
|
|
||||||
% brackets around its parameter). Arguments are automatically set in
|
|
||||||
% italics in the parameter list. Each argument should be mentioned at
|
|
||||||
% least once in the description; each usage (even inside \code{...})
|
|
||||||
% should be enclosed in \var{...}.
|
|
||||||
|
|
||||||
\begin{funcdesc}{dis}{\optional{bytesource}}
|
\begin{funcdesc}{dis}{\optional{bytesource}}
|
||||||
Disassemble the \var{bytesource} object. \var{bytesource} can denote
|
Disassemble the \var{bytesource} object. \var{bytesource} can denote
|
||||||
either a class, a method, a function, or a code object. For a class,
|
either a class, a method, a function, or a code object. For a class,
|
||||||
|
|
@ -196,27 +182,27 @@ Implements \code{TOS = TOS1 - TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_SUBSCR}{}
|
\begin{opcodedesc}{BINARY_SUBSCR}{}
|
||||||
Implements \code{TOS = TOS1[TOS] }.
|
Implements \code{TOS = TOS1[TOS]}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_LSHIFT}{}
|
\begin{opcodedesc}{BINARY_LSHIFT}{}
|
||||||
Implements \code{TOS = TOS1 << TOS }.
|
Implements \code{TOS = TOS1 << TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_RSHIFT}{}
|
\begin{opcodedesc}{BINARY_RSHIFT}{}
|
||||||
Implements \code{TOS = TOS1 >> TOS }.
|
Implements \code{TOS = TOS1 >> TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_AND}{}
|
\begin{opcodedesc}{BINARY_AND}{}
|
||||||
Implements \code{TOS = TOS1 and TOS }.
|
Implements \code{TOS = TOS1 and TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_XOR}{}
|
\begin{opcodedesc}{BINARY_XOR}{}
|
||||||
Implements \code{TOS = TOS1 \^{ }TOS }.
|
Implements \code{TOS = TOS1 \^{ }TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
\begin{opcodedesc}{BINARY_OR}{}
|
\begin{opcodedesc}{BINARY_OR}{}
|
||||||
Implements \code{TOS = TOS1 or TOS }.
|
Implements \code{TOS = TOS1 or TOS}.
|
||||||
\end{opcodedesc}
|
\end{opcodedesc}
|
||||||
|
|
||||||
The slice opcodes take up to three parameters.
|
The slice opcodes take up to three parameters.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue