summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libpprint.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-03-27 05:27:08 (GMT)
committerFred Drake <fdrake@acm.org>1998-03-27 05:27:08 (GMT)
commit8fe533e6a092f8f8aa8d7b81dd8f38c5057e9682 (patch)
tree3371e13f1ada67e3d7451e38fddcadbe7c098283 /Doc/lib/libpprint.tex
parentec56109a0af6d3f705feffc50fc59abab1c0ccea (diff)
downloadcpython-8fe533e6a092f8f8aa8d7b81dd8f38c5057e9682.zip
cpython-8fe533e6a092f8f8aa8d7b81dd8f38c5057e9682.tar.gz
cpython-8fe533e6a092f8f8aa8d7b81dd8f38c5057e9682.tar.bz2
Use the new {methoddesc} and {memberdesc} environments as appropriate.
Diffstat (limited to 'Doc/lib/libpprint.tex')
-rw-r--r--Doc/lib/libpprint.tex19
1 files changed, 9 insertions, 10 deletions
diff --git a/Doc/lib/libpprint.tex b/Doc/lib/libpprint.tex
index 6f03431..8062576 100644
--- a/Doc/lib/libpprint.tex
+++ b/Doc/lib/libpprint.tex
@@ -142,32 +142,31 @@ l/lib/python1.4/test', '/usr/local/lib/python1.4/sunos5', '/usr/local/lib/python
\class{PrettyPrinter} instances have the following methods:
-\setindexsubitem{(PrettyPrinter method)}
-\begin{funcdesc}{pformat}{object}
+\begin{methoddesc}{pformat}{object}
Return the formatted representation of \var{object}. This takes into
-account the options passed to the \class{PrettyPrinter} constructor.
-\end{funcdesc}
+Account the options passed to the \class{PrettyPrinter} constructor.
+\end{methoddesc}
-\begin{funcdesc}{pprint}{object}
+\begin{methoddesc}{pprint}{object}
Print the formatted representation of \var{object} on the configured
stream, followed by a newline.
-\end{funcdesc}
+\end{methoddesc}
The following methods provide the implementations for the
corresponding functions of the same names. Using these methods on an
instance is slightly more efficient since new \class{PrettyPrinter}
objects don't need to be created.
-\begin{funcdesc}{isreadable}{object}
+\begin{methoddesc}{isreadable}{object}
Determine if the formatted representation of the object is
``readable,'' or can be used to reconstruct the value using
\function{eval()}\bifuncindex{eval}. Note that this returns false for
recursive objects. If the \var{depth} parameter of the
\class{PrettyPrinter} is set and the object is deeper than allowed,
this returns false.
-\end{funcdesc}
+\end{methoddesc}
-\begin{funcdesc}{isrecursive}{object}
+\begin{methoddesc}{isrecursive}{object}
Determine if the object requires a recursive representation.
-\end{funcdesc}
+\end{methoddesc}