Commit c0548c9d authored by Senthil Kumaran's avatar Senthil Kumaran

Fix Issue5416 - explain negative value of maxplit in str.replace.

parent d74ca12f
......@@ -513,7 +513,8 @@ def replace(s, old, new, maxsplit=-1):
Return a copy of string str with all occurrences of substring
old replaced by new. If the optional argument maxsplit is
given, only the first maxsplit occurrences are replaced.
given, only the first maxsplit occurrences are replaced. A
negative value of maxsplit signifies all occurances.
"""
return s.replace(old, new, maxsplit)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment