diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-04-10 22:35:32 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-04-10 22:35:32 (GMT) |
commit | ffe33b7f2416132d2e5b64683dbcc2aaf0596937 (patch) | |
tree | ba66fc78e483c14dc34b86a8f079d5b37268f03d /Doc | |
parent | 5c16c7b014f4cf975d25f667f6309933415e130d (diff) | |
download | cpython-ffe33b7f2416132d2e5b64683dbcc2aaf0596937.zip cpython-ffe33b7f2416132d2e5b64683dbcc2aaf0596937.tar.gz cpython-ffe33b7f2416132d2e5b64683dbcc2aaf0596937.tar.bz2 |
Attempt to make all the various string *strip methods the same.
* Doc - add doc for when functions were added
* UserString
* string object methods
* string module functions
'chars' is used for the last parameter everywhere.
These changes will be backported, since part of the changes
have already been made, but they were inconsistent.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libstring.tex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex index 99bb5ee..1f1a89e 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 2.2 versions]{2.2.3} \end{funcdesc} \begin{funcdesc}{strip}{s\optional{, chars}} @@ -259,6 +263,8 @@ 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. +\versionchanged[The \var{chars} parameter was added. The \var{chars} +parameter cannot be passed in 2.2 or 2.2.1]{2.2.2} \end{funcdesc} \begin{funcdesc}{swapcase}{s} |