[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex, 1.141,
1.142
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Wed Nov 26 03:22:05 EST 2003
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv11053/Doc/lib
Modified Files:
libstdtypes.tex
Log Message:
Add optional fillchar argument to ljust(), rjust(), and center() string methods.
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.141
retrieving revision 1.142
diff -C2 -d -r1.141 -r1.142
*** libstdtypes.tex 24 Nov 2003 02:57:33 -0000 1.141
--- libstdtypes.tex 26 Nov 2003 08:21:32 -0000 1.142
***************
*** 547,553 ****
\end{methoddesc}
! \begin{methoddesc}[string]{center}{width}
Return centered in a string of length \var{width}. Padding is done
! using spaces.
\end{methoddesc}
--- 547,553 ----
\end{methoddesc}
! \begin{methoddesc}[string]{center}{width\optional{, fillchar}}
Return centered in a string of length \var{width}. Padding is done
! using the specified \var{fillchar} (default is a space).
\end{methoddesc}
***************
*** 646,652 ****
\end{methoddesc}
! \begin{methoddesc}[string]{ljust}{width}
Return the string left justified in a string of length \var{width}.
! Padding is done using spaces. The original string is returned if
\var{width} is less than \code{len(\var{s})}.
\end{methoddesc}
--- 646,653 ----
\end{methoddesc}
! \begin{methoddesc}[string]{ljust}{width\optional{, fillchar}}
Return the string left justified in a string of length \var{width}.
! Padding is done using the specified \var{fillchar} (default is a
! space). The original string is returned if
\var{width} is less than \code{len(\var{s})}.
\end{methoddesc}
***************
*** 684,690 ****
\end{methoddesc}
! \begin{methoddesc}[string]{rjust}{width}
Return the string right justified in a string of length \var{width}.
! Padding is done using spaces. The original string is returned if
\var{width} is less than \code{len(\var{s})}.
\end{methoddesc}
--- 685,692 ----
\end{methoddesc}
! \begin{methoddesc}[string]{rjust}{width\optional{, fillchar}}
Return the string right justified in a string of length \var{width}.
! Padding is done using the specified \var{fillchar} (default is a space).
! The original string is returned if
\var{width} is less than \code{len(\var{s})}.
\end{methoddesc}
More information about the Python-checkins
mailing list