diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-04-11 18:21:22 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-04-11 18:21:22 (GMT) |
commit | 9976fdf83cd75816e2d370197f030074c6cc1697 (patch) | |
tree | 0163eb46f66314b7a11a457a2bdea93117db14b0 /Doc/lib | |
parent | ef582abab461e306ac3fa0ad867b2db564fed3a5 (diff) | |
download | cpython-9976fdf83cd75816e2d370197f030074c6cc1697.zip cpython-9976fdf83cd75816e2d370197f030074c6cc1697.tar.gz cpython-9976fdf83cd75816e2d370197f030074c6cc1697.tar.bz2 |
Backport:
Fix SF bug #697220, string.strip implementation/doc mismatch
Attempt to make all the various string/unicode *strip methods the same.
* Doc - add doc for when functions were added
* UserString
* string/unicode object methods
* string module functions
'chars' is used for the last parameter everywhere.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libstring.tex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex index d84226c..7be55c2 100644 --- a/Doc/lib/libstring.tex +++ b/Doc/lib/libstring.tex @@ -243,6 +243,8 @@ Return a copy of the string with leading characters removed. If 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. +\versionchanged[The \var{chars} parameter was added. The \var{chars} +parameter cannot be passed in earlier 2.2 versions]{2.2.3} \end{funcdesc} \begin{funcdesc}{rstrip}{s\optional{, chars}} @@ -251,6 +253,8 @@ Return a copy of the string with trailing characters removed. If 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. +\versionchanged[The \var{chars} parameter was added. The \var{chars} +parameter cannot be passed in earlier 2.2 versions]{2.2.3} \end{funcdesc} \begin{funcdesc}{strip}{s\optional{, chars}} @@ -260,7 +264,7 @@ 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. \versionchanged[The \var{chars} parameter was added. The \var{chars} -parameter cannot be passed in 2.2 or 2.2.1]{2.2.2} +parameter cannot be passed in earlier 2.2 versions]{2.2.3} \end{funcdesc} \begin{funcdesc}{swapcase}{s} |