[Python-checkins] python/dist/src/Doc/lib libstring.tex,1.45,1.45.8.1

doerwalter@sourceforge.net doerwalter@sourceforge.net
Mon, 22 Apr 2002 11:42:46 -0700


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

Modified Files:
      Tag: release22-maint
	libstring.tex 
Log Message:
Backport checkin:
Apply patch diff.txt from SF feature request 
http://www.python.org/sf/444708

This adds the optional argument for str.strip
to unicode.strip too and makes it possible
to call str.strip with a unicode argument
and unicode.strip with a str argument.


Index: libstring.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstring.tex,v
retrieving revision 1.45
retrieving revision 1.45.8.1
diff -C2 -d -r1.45 -r1.45.8.1
*** libstring.tex	20 Oct 2001 04:24:09 -0000	1.45
--- libstring.tex	22 Apr 2002 18:42:44 -0000	1.45.8.1
***************
*** 236,250 ****
  \end{funcdesc}
  
! \begin{funcdesc}{lstrip}{s}
!   Return a copy of \var{s} but without leading whitespace characters.
  \end{funcdesc}
  
! \begin{funcdesc}{rstrip}{s}
!   Return a copy of \var{s} but without trailing whitespace
!   characters.
  \end{funcdesc}
  
! \begin{funcdesc}{strip}{s}
!   Return a copy of \var{s} without leading or trailing whitespace.
  \end{funcdesc}
  
--- 236,261 ----
  \end{funcdesc}
  
! \begin{funcdesc}{lstrip}{s\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{funcdesc}
  
! \begin{funcdesc}{rstrip}{s\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{funcdesc}
  
! \begin{funcdesc}{strip}{s\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{funcdesc}