diff Lib/string.py @ 11439:316be08c9ecd legacy-trunk

split() docstring: Made signature and description for the first parameter match. Error pointed out by François Pinard <pinard@iro.umontreal.ca> on c.l.py.
author Fred Drake <fdrake@acm.org>
date Thu, 04 Nov 1999 19:19:48 +0000
parents aca7b5eaf5e8
children 6f4146846337
line wrap: on
line diff
--- a/Lib/string.py	Thu Nov 04 18:22:29 1999 +0000
+++ b/Lib/string.py	Thu Nov 04 19:19:48 1999 +0000
@@ -100,11 +100,11 @@
 # Split a string into a list of space/tab-separated words
 # NB: split(s) is NOT the same as splitfields(s, ' ')!
 def split(s, sep=None, maxsplit=0):
-    """split(str [,sep [,maxsplit]]) -> list of strings
+    """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 nonzero, splits into at most
-    maxsplit words If sep is not specified, any whitespace string
+    maxsplit words.  If sep is not specified, any whitespace string
     is a separator.  Maxsplit defaults to 0.
 
     (split and splitfields are synonymous)