Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 30751:6fdde96a7222 2.3
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:57:23 +0000 |
| parents | be0ca26ad574 |
| children | 21a10c3600b5 |
line wrap: on
line diff
--- a/Objects/stringobject.c Tue Oct 21 20:02:46 2003 +0000 +++ b/Objects/stringobject.c Wed Oct 22 02:57:23 2003 +0000 @@ -2308,11 +2308,11 @@ 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)
