[Python-checkins] python/dist/src/Doc/lib libpprint.tex,1.16,1.17

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Wed Dec 3 15:26:07 EST 2003


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv14858/Doc/lib
Modified Files:
	libpprint.tex 
Log Message:
Add parameters indent, width and depth to pprint.pprint() and pprint.pformat()
and pass them along to the PrettyPrinter constructor.
Index: libpprint.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libpprint.tex,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** libpprint.tex	27 Nov 2003 19:48:03 -0000	1.16
--- libpprint.tex	3 Dec 2003 20:26:05 -0000	1.17
***************
*** 78,92 ****
 The \class{PrettyPrinter} class supports several derivative functions:
 
! \begin{funcdesc}{pformat}{object}
! Return the formatted representation of \var{object} as a string. The
! default parameters for formatting are used.
 \end{funcdesc}
 
! \begin{funcdesc}{pprint}{object\optional{, stream}}
 Prints the formatted representation of \var{object} on \var{stream},
 followed by a newline. If \var{stream} is omitted, \code{sys.stdout}
 is used. This may be used in the interactive interpreter instead of a
! \keyword{print} statement for inspecting values. The default
! parameters for formatting are used.
 
 \begin{verbatim}
--- 78,98 ----
 The \class{PrettyPrinter} class supports several derivative functions:
 
! \begin{funcdesc}{pformat}{object\optional{, indent\optional{,
! width\optional{, depth}}}}
! Return the formatted representation of \var{object} as a string. \var{indent},
! \var{width} and \var{depth} will be passed to the \class{PrettyPrinter}
! constructor as formatting parameters.
! \versionchanged[The parameters \var{indent}, \var{width} and \var{depth}
! were added]{2.4}
 \end{funcdesc}
 
! \begin{funcdesc}{pprint}{object\optional{, stream\optional{,
! indent\optional{, width\optional{, depth}}}}}
 Prints the formatted representation of \var{object} on \var{stream},
 followed by a newline. If \var{stream} is omitted, \code{sys.stdout}
 is used. This may be used in the interactive interpreter instead of a
! \keyword{print} statement for inspecting values. \var{indent},
! \var{width} and \var{depth} will be passed to the \class{PrettyPrinter}
! constructor as formatting parameters.
 
 \begin{verbatim}
***************
*** 102,105 ****
--- 108,113 ----
 '/usr/local/lib/python1.5/tkinter']
 \end{verbatim}
+ \versionchanged[The parameters \var{indent}, \var{width} and \var{depth}
+ were added]{2.4}
 \end{funcdesc}
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /