[Python-checkins] r83879 - python/branches/release27-maint/Lib/string.py

senthil.kumaran python-checkins at python.org
Mon Aug 9 10:47:15 CEST 2010


Author: senthil.kumaran
Date: Mon Aug  9 10:47:15 2010
New Revision: 83879

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



Modified:
   python/branches/release27-maint/Lib/string.py

Modified: python/branches/release27-maint/Lib/string.py
==============================================================================
--- python/branches/release27-maint/Lib/string.py	(original)
+++ python/branches/release27-maint/Lib/string.py	Mon Aug  9 10:47:15 2010
@@ -513,7 +513,8 @@
 
     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)


More information about the Python-checkins mailing list