Avoid confusing name for the 3rd argument to str.replace().

This closes SF bug #827260.
This commit is contained in:
Fred Drake 2003-10-22 02:56:40 +00:00
parent f12f32421f
commit d22bb6584d
2 changed files with 6 additions and 6 deletions

View file

@ -2308,11 +2308,11 @@ mymemreplace(const char *str, int len, /* input string */
PyDoc_STRVAR(replace__doc__,
"S.replace (old, new[, maxsplit]) -> string\n\
"S.replace (old, new[, count]) -> string\n\
\n\
Return a copy of string S with all occurrences of substring\n\
old replaced by new. If the optional argument maxsplit is\n\
given, only the first maxsplit occurrences are replaced.");
old replaced by new. If the optional argument count is\n\
given, only the first count occurrences are replaced.");
static PyObject *
string_replace(PyStringObject *self, PyObject *args)