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

This commit is contained in:
Senthil Kumaran 2010-08-09 08:47:15 +00:00
parent d74ca12fdd
commit c0548c9d90

View file

@ -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)