]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Note that str.zfill() and the optional argument to str.strip(),
authorFred Drake <fdrake@acm.org>
Sat, 16 Nov 2002 00:45:14 +0000 (00:45 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 16 Nov 2002 00:45:14 +0000 (00:45 +0000)
.lstrip(), and .rstrip() were all added in 2.2.2.  ;-(
Closes SF bug #639170.

Doc/lib/libstdtypes.tex

index 2bec44c65230eeda227c294978aac7c5bfa0fdb6..2b3685a788716b2b6cd264d3a29de8941b42c8d4 100644 (file)
@@ -623,6 +623,7 @@ 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[Support for the \var{chars} argument]{2.2.2}
 \end{methoddesc}
 
 \begin{methoddesc}[string]{replace}{old, new\optional{, maxsplit}}
@@ -656,6 +657,7 @@ 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[Support for the \var{chars} argument]{2.2.2}
 \end{methoddesc}
 
 \begin{methoddesc}[string]{split}{\optional{sep \optional{,maxsplit}}}
@@ -685,6 +687,7 @@ 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[Support for the \var{chars} argument]{2.2.2}
 \end{methoddesc}
 
 \begin{methoddesc}[string]{swapcase}{}
@@ -712,6 +715,7 @@ Return a copy of the string converted to uppercase.
 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})}.
+\versionadded{2.2.2}
 \end{methoddesc}