diff options
author | Fred Drake <fdrake@acm.org> | 2003-10-22 02:56:40 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-10-22 02:56:40 +0000 |
commit | 938c298fd80bc1d4f416cadb283c27c907f01d36 (patch) | |
tree | 3a187f7dd1136cea43ed35672e9109a8255537c8 /Objects/stringobject.c | |
parent | 3bfe107bd9a9bda4d464dc3e998128033ed909e6 (diff) | |
download | cpython-938c298fd80bc1d4f416cadb283c27c907f01d36.tar.gz |
Avoid confusing name for the 3rd argument to str.replace().
This closes SF bug #827260.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 7143a81596..0a22440671 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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) |