]> granicus.if.org Git - python/commitdiff
Fix the formatting of the list of fields in the disassemble() function.
authorFred Drake <fdrake@acm.org>
Tue, 7 Apr 1998 14:16:41 +0000 (14:16 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 7 Apr 1998 14:16:41 +0000 (14:16 +0000)
Doc/lib/libdis.tex
Doc/libdis.tex

index f484103171f686722ffa5e61a114ad6be4037165..0340c4f1bb77c9d0ebd3e3ced2ef6d4292764d5a 100644 (file)
@@ -50,14 +50,20 @@ is indicated.
 \begin{funcdesc}{disassemble}{code\optional{, lasti}}
 Disassembles a code object, indicating the last instruction if \var{lasti}
 was provided.  The output is divided in the following columns:
-\begin{itemize}
+
+\newcounter{discounter}
+\begin{list}{\arabic{discounter}.}{%
+  \usecounter{discounter}
+  \setlength{\leftmargin}{4.5mm}
+  \setlength{\labelsep}{1.5mm}}
 \item the current instruction, indicated as \samp{-->},
 \item a labelled instruction, indicated with \samp{>>},
 \item the address of the instruction,
 \item the operation code name,
 \item operation parameters, and
 \item interpretation of the parameters in parentheses.
-\end{itemize}
+\end{list}
+
 The parameter interpretation recognizes local and global
 variable names, constant values, branch targets, and compare
 operators.
index f484103171f686722ffa5e61a114ad6be4037165..0340c4f1bb77c9d0ebd3e3ced2ef6d4292764d5a 100644 (file)
@@ -50,14 +50,20 @@ is indicated.
 \begin{funcdesc}{disassemble}{code\optional{, lasti}}
 Disassembles a code object, indicating the last instruction if \var{lasti}
 was provided.  The output is divided in the following columns:
-\begin{itemize}
+
+\newcounter{discounter}
+\begin{list}{\arabic{discounter}.}{%
+  \usecounter{discounter}
+  \setlength{\leftmargin}{4.5mm}
+  \setlength{\labelsep}{1.5mm}}
 \item the current instruction, indicated as \samp{-->},
 \item a labelled instruction, indicated with \samp{>>},
 \item the address of the instruction,
 \item the operation code name,
 \item operation parameters, and
 \item interpretation of the parameters in parentheses.
-\end{itemize}
+\end{list}
+
 The parameter interpretation recognizes local and global
 variable names, constant values, branch targets, and compare
 operators.