summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-04-07 14:16:41 (GMT)
committerFred Drake <fdrake@acm.org>1998-04-07 14:16:41 (GMT)
commit810349b68585167b5deaf9db78110ddc2dc71a58 (patch)
treeddacf4d1efff5ab741fc668ae7324f5a53a03cce /Doc
parent272fb3aaa44e8b15bfa10a0dff28e42cb1bd0229 (diff)
downloadcpython-810349b68585167b5deaf9db78110ddc2dc71a58.zip
cpython-810349b68585167b5deaf9db78110ddc2dc71a58.tar.gz
cpython-810349b68585167b5deaf9db78110ddc2dc71a58.tar.bz2
Fix the formatting of the list of fields in the disassemble() function.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libdis.tex10
-rw-r--r--Doc/libdis.tex10
2 files changed, 16 insertions, 4 deletions
diff --git a/Doc/lib/libdis.tex b/Doc/lib/libdis.tex
index f484103..0340c4f 100644
--- a/Doc/lib/libdis.tex
+++ b/Doc/lib/libdis.tex
@@ -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.
diff --git a/Doc/libdis.tex b/Doc/libdis.tex
index f484103..0340c4f 100644
--- a/Doc/libdis.tex
+++ b/Doc/libdis.tex
@@ -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.