[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex,1.87,1.88

doerwalter@sourceforge.net doerwalter@sourceforge.net
Mon, 15 Apr 2002 06:37:16 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv32693/Doc/lib

Modified Files:
	libstdtypes.tex 
Log Message:
Apply the second version of SF patch http://www.python.org/sf/536241

Add a method zfill to str, unicode and UserString and change
Lib/string.py accordingly.

This activates the zfill version in unicodeobject.c that was
commented out and implements the same in stringobject.c. It also
adds the test for unicode support in Lib/string.py back in and
uses repr() instead() of str() (as it was before Lib/string.py 1.62)


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -d -r1.87 -r1.88
*** libstdtypes.tex	13 Apr 2002 02:43:39 -0000	1.87
--- libstdtypes.tex	15 Apr 2002 13:36:43 -0000	1.88
***************
*** 695,698 ****
--- 695,704 ----
  \end{methoddesc}
  
+ \begin{methoddesc}[string]{zfill}{width}
+ Return the numeric string left filled with zeros in a string
+ of length \var{width}. The original string is returned if
+ \var{width} is less than \code{len(\var{s})}.
+ \end{methoddesc}
+ 
  
  \subsubsection{String Formatting Operations \label{typesseq-strings}}