diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-09-28 13:31:06 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-09-28 13:31:06 (GMT) |
commit | 9ac20231e02512bd42d3dfc7e0d13dde28a4a96b (patch) | |
tree | cede58794803ed761a9b857dff801fa568415a04 | |
parent | bf2ad34650f02c277826554d211deac5539b1477 (diff) | |
download | cpython-9ac20231e02512bd42d3dfc7e0d13dde28a4a96b.zip cpython-9ac20231e02512bd42d3dfc7e0d13dde28a4a96b.tar.gz cpython-9ac20231e02512bd42d3dfc7e0d13dde28a4a96b.tar.bz2 |
Update documentation for string.replace. Thanks to docs@
-rw-r--r-- | Doc/library/string.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst index ef1a0c2..a7336c4 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -1029,9 +1029,9 @@ not be removed until Python 3. The functions defined in this module are: reached. Strings starting with a sign are handled correctly. -.. function:: replace(str, old, new[, maxreplace]) +.. function:: replace(s, old, new[, maxreplace]) - Return a copy of string *str* with all occurrences of substring *old* replaced + Return a copy of string *s* with all occurrences of substring *old* replaced by *new*. If the optional argument *maxreplace* is given, the first *maxreplace* occurrences are replaced. |