diff Doc/lib/libstdtypes.tex @ 30750:1d92ecdf2bb1 legacy-trunk

Avoid confusing name for the 3rd argument to str.replace(). This closes SF bug #827260.
author Fred Drake <fdrake@acm.org>
date Wed, 22 Oct 2003 02:56:40 +0000
parents 38b0b7d41936
children 2cba0de70df6
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex	Tue Oct 21 18:42:21 2003 +0000
+++ b/Doc/lib/libstdtypes.tex	Wed Oct 22 02:56:40 2003 +0000
@@ -563,7 +563,7 @@
 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 @@
 \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}