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

Skip to content

Commit 1cf8749

Browse files
committed
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.
1 parent 7381e28 commit 1cf8749

2 files changed

Lines changed: 12 additions & 40 deletions

File tree

Doc/lib/libdis.tex

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,6 @@ \section{Standard module \sectcode{dis}} % If implemented in Python
3535

3636
\renewcommand{\indexsubitem}{(in module dis)}
3737

38-
% ---- 3.2. ----
39-
% For each function, use a ``funcdesc'' block. This has exactly two
40-
% parameters (each parameters is contained in a set of curly braces):
41-
% the first parameter is the function name (this automatically
42-
% generates an index entry); the second parameter is the function's
43-
% argument list. If there are no arguments, use an empty pair of
44-
% curly braces. If there is more than one argument, separate the
45-
% arguments with backslash-comma. Optional parts of the parameter
46-
% list are contained in \optional{...} (this generates a set of square
47-
% brackets around its parameter). Arguments are automatically set in
48-
% italics in the parameter list. Each argument should be mentioned at
49-
% least once in the description; each usage (even inside \code{...})
50-
% should be enclosed in \var{...}.
51-
5238
\begin{funcdesc}{dis}{\optional{bytesource}}
5339
Disassemble the \var{bytesource} object. \var{bytesource} can denote
5440
either a class, a method, a function, or a code object. For a class,
@@ -196,27 +182,27 @@ \subsection{Python Byte Code Instructions}
196182
\end{opcodedesc}
197183

198184
\begin{opcodedesc}{BINARY_SUBSCR}{}
199-
Implements \code{TOS = TOS1[TOS] }.
185+
Implements \code{TOS = TOS1[TOS]}.
200186
\end{opcodedesc}
201187

202188
\begin{opcodedesc}{BINARY_LSHIFT}{}
203-
Implements \code{TOS = TOS1 << TOS }.
189+
Implements \code{TOS = TOS1 << TOS}.
204190
\end{opcodedesc}
205191

206192
\begin{opcodedesc}{BINARY_RSHIFT}{}
207-
Implements \code{TOS = TOS1 >> TOS }.
193+
Implements \code{TOS = TOS1 >> TOS}.
208194
\end{opcodedesc}
209195

210196
\begin{opcodedesc}{BINARY_AND}{}
211-
Implements \code{TOS = TOS1 and TOS }.
197+
Implements \code{TOS = TOS1 and TOS}.
212198
\end{opcodedesc}
213199

214200
\begin{opcodedesc}{BINARY_XOR}{}
215-
Implements \code{TOS = TOS1 \^{ }TOS }.
201+
Implements \code{TOS = TOS1 \^{ }TOS}.
216202
\end{opcodedesc}
217203

218204
\begin{opcodedesc}{BINARY_OR}{}
219-
Implements \code{TOS = TOS1 or TOS }.
205+
Implements \code{TOS = TOS1 or TOS}.
220206
\end{opcodedesc}
221207

222208
The slice opcodes take up to three parameters.

Doc/libdis.tex

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,6 @@ \section{Standard module \sectcode{dis}} % If implemented in Python
3535

3636
\renewcommand{\indexsubitem}{(in module dis)}
3737

38-
% ---- 3.2. ----
39-
% For each function, use a ``funcdesc'' block. This has exactly two
40-
% parameters (each parameters is contained in a set of curly braces):
41-
% the first parameter is the function name (this automatically
42-
% generates an index entry); the second parameter is the function's
43-
% argument list. If there are no arguments, use an empty pair of
44-
% curly braces. If there is more than one argument, separate the
45-
% arguments with backslash-comma. Optional parts of the parameter
46-
% list are contained in \optional{...} (this generates a set of square
47-
% brackets around its parameter). Arguments are automatically set in
48-
% italics in the parameter list. Each argument should be mentioned at
49-
% least once in the description; each usage (even inside \code{...})
50-
% should be enclosed in \var{...}.
51-
5238
\begin{funcdesc}{dis}{\optional{bytesource}}
5339
Disassemble the \var{bytesource} object. \var{bytesource} can denote
5440
either a class, a method, a function, or a code object. For a class,
@@ -196,27 +182,27 @@ \subsection{Python Byte Code Instructions}
196182
\end{opcodedesc}
197183

198184
\begin{opcodedesc}{BINARY_SUBSCR}{}
199-
Implements \code{TOS = TOS1[TOS] }.
185+
Implements \code{TOS = TOS1[TOS]}.
200186
\end{opcodedesc}
201187

202188
\begin{opcodedesc}{BINARY_LSHIFT}{}
203-
Implements \code{TOS = TOS1 << TOS }.
189+
Implements \code{TOS = TOS1 << TOS}.
204190
\end{opcodedesc}
205191

206192
\begin{opcodedesc}{BINARY_RSHIFT}{}
207-
Implements \code{TOS = TOS1 >> TOS }.
193+
Implements \code{TOS = TOS1 >> TOS}.
208194
\end{opcodedesc}
209195

210196
\begin{opcodedesc}{BINARY_AND}{}
211-
Implements \code{TOS = TOS1 and TOS }.
197+
Implements \code{TOS = TOS1 and TOS}.
212198
\end{opcodedesc}
213199

214200
\begin{opcodedesc}{BINARY_XOR}{}
215-
Implements \code{TOS = TOS1 \^{ }TOS }.
201+
Implements \code{TOS = TOS1 \^{ }TOS}.
216202
\end{opcodedesc}
217203

218204
\begin{opcodedesc}{BINARY_OR}{}
219-
Implements \code{TOS = TOS1 or TOS }.
205+
Implements \code{TOS = TOS1 or TOS}.
220206
\end{opcodedesc}
221207

222208
The slice opcodes take up to three parameters.

0 commit comments

Comments
 (0)