Mailing List Archive

python/dist/src/Doc/lib libstdtypes.tex,1.86,1.87
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv10503/lib

Modified Files:
libstdtypes.tex
Log Message:
Document the optional argument to the .strip(), .rstrip(), .strip() string
methods.
Part of SF feature #444708.


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.86
retrieving revision 1.87
diff -C2 -d -r1.86 -r1.87
*** libstdtypes.tex 12 Apr 2002 15:11:59 -0000 1.86
--- libstdtypes.tex 13 Apr 2002 02:43:39 -0000 1.87
***************
*** 604,609 ****
\end{methoddesc}

! \begin{methoddesc}[string]{lstrip}{}
! Return a copy of the string with leading whitespace removed.
\end{methoddesc}

--- 604,613 ----
\end{methoddesc}

! \begin{methoddesc}[string]{lstrip}{\optional{chars}}
! Return a copy of the string with leading characters removed. If
! \var{chars} is omitted or \code{None}, whitespace characters are
! removed. If given and not \code{None}, \var{chars} must be a string;
! the characters in the string will be stripped from the beginning of
! the string this method is called on.
\end{methoddesc}

***************
*** 633,638 ****
\end{methoddesc}

! \begin{methoddesc}[string]{rstrip}{}
! Return a copy of the string with trailing whitespace removed.
\end{methoddesc}

--- 637,646 ----
\end{methoddesc}

! \begin{methoddesc}[string]{rstrip}{\optional{chars}}
! Return a copy of the string with trailing characters removed. If
! \var{chars} is omitted or \code{None}, whitespace characters are
! removed. If given and not \code{None}, \var{chars} must be a string;
! the characters in the string will be stripped from the end of the
! string this method is called on.
\end{methoddesc}

***************
*** 650,654 ****
\end{methoddesc}

! \begin{methoddesc}[string]{startswith}{prefix\optional{, start\optional{, end}}}
Return true if string starts with the \var{prefix}, otherwise
return false. With optional \var{start}, test string beginning at
--- 658,663 ----
\end{methoddesc}

! \begin{methoddesc}[string]{startswith}{prefix\optional{,
! start\optional{, end}}}
Return true if string starts with the \var{prefix}, otherwise
return false. With optional \var{start}, test string beginning at
***************
*** 657,663 ****
\end{methoddesc}

! \begin{methoddesc}[string]{strip}{}
! Return a copy of the string with leading and trailing whitespace
! removed.
\end{methoddesc}

--- 666,675 ----
\end{methoddesc}

! \begin{methoddesc}[string]{strip}{\optional{chars}}
! Return a copy of the string with leading and trailing characters
! removed. If \var{chars} is omitted or \code{None}, whitespace
! characters are removed. If given and not \code{None}, \var{chars}
! must be a string; the characters in the string will be stripped from
! the both ends of the string this method is called on.
\end{methoddesc}