summaryrefslogtreecommitdiff
path: root/Lib/string.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/string.py b/Lib/string.py
index 6faa1f02c8..9477268340 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -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)