diff Lib/string.py @ 21849:faaaeb535d39 2.1

string.split() docstring described the interpretation of the maxsplit argument incorrectly. This closes SF bug #505997.
author Fred Drake <fdrake@acm.org>
date Wed, 30 Jan 2002 16:16:38 +0000
parents 79d533934ac1
children
line wrap: on
line diff
--- a/Lib/string.py	Thu Jan 24 16:40:31 2002 +0000
+++ b/Lib/string.py	Wed Jan 30 16:16:38 2002 +0000
@@ -104,9 +104,9 @@
     """split(s [,sep [,maxsplit]]) -> list of strings
 
     Return a list of the words in the string s, using sep as the
-    delimiter string.  If maxsplit is given, splits into at most
-    maxsplit words.  If sep is not specified, any whitespace string
-    is a separator.
+    delimiter string.  If maxsplit is given, splits at no more than
+    maxsplit places (resulting in at most maxsplit+1 words).  If sep
+    is not specified, any whitespace string is a separator.
 
     (split and splitfields are synonymous)