diff options
author | Fred Drake <fdrake@acm.org> | 2003-10-22 02:56:40 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-10-22 02:56:40 (GMT) |
commit | d22bb6584d61b822bd1d6841a40f50d31aba650c (patch) | |
tree | 439652caee3b83fc658eda3ffae97a675a90b6ac /Doc/lib | |
parent | f12f32421f827caa42553dadc6d2a71c92656490 (diff) | |
download | cpython-d22bb6584d61b822bd1d6841a40f50d31aba650c.zip cpython-d22bb6584d61b822bd1d6841a40f50d31aba650c.tar.gz cpython-d22bb6584d61b822bd1d6841a40f50d31aba650c.tar.bz2 |
Avoid confusing name for the 3rd argument to str.replace().
This closes SF bug #827260.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index d19926d..bffcea9 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -563,7 +563,7 @@ Decodes the string using the codec registered for \var{encoding}. may be given to set a different error handling scheme. The default is \code{'strict'}, meaning that encoding errors raise \exception{ValueError}. Other possible values are \code{'ignore'} and -\code{replace'}. +\code{'replace'}. \versionadded{2.2} \end{methoddesc} @@ -664,10 +664,10 @@ 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}} +\begin{methoddesc}[string]{replace}{old, new\optional{, count}} Return a copy of the string with all occurrences of substring \var{old} replaced by \var{new}. If the optional argument -\var{maxsplit} is given, only the first \var{maxsplit} occurrences are +\var{count} is given, only the first \var{count} occurrences are replaced. \end{methoddesc} |