diff Lib/string.py @ 21848:fd424f519a8e 2.2

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:15:59 +0000
parents 22b2f4b436af
children b08b51dce264 46407d0a6000
line wrap: on
line diff
--- a/Lib/string.py	Tue Jan 29 14:54:18 2002 +0000
+++ b/Lib/string.py	Wed Jan 30 16:15:59 2002 +0000
@@ -107,9 +107,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)