mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Avoid confusing name for the 3rd argument to str.replace().
This closes SF bug #827260.
This commit is contained in:
parent
f12f32421f
commit
d22bb6584d
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue