]> granicus.if.org Git - python/commitdiff
split() docstring: Made signature and description for the first
authorFred Drake <fdrake@acm.org>
Thu, 4 Nov 1999 19:19:48 +0000 (19:19 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 4 Nov 1999 19:19:48 +0000 (19:19 +0000)
                    parameter match.  Error pointed out by François
                    Pinard <pinard@iro.umontreal.ca> on c.l.py.

Lib/string.py
Modules/stropmodule.c

index 2c3083e221ca50890c0aa21aafbacbd04b929903..a43da327663cc76c356ea1fabe0187808ccc65f8 100644 (file)
@@ -100,11 +100,11 @@ def rstrip(s):
 # 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)
index 4b8a501c31612c4510e9ebd8928b05be9ee0c01f..7a56e3751feae0659bbd879bfbeb1361e37a6b25 100644 (file)
@@ -117,12 +117,12 @@ split_whitespace(s, len, maxsplit)
 
 
 static char splitfields__doc__[] =
-"split(str [,sep [,maxsplit]]) -> list of strings\n\
-splitfields(str [,sep [,maxsplit]]) -> list of strings\n\
+"split(s [,sep [,maxsplit]]) -> list of strings\n\
+splitfields(s [,sep [,maxsplit]]) -> list of strings\n\
 \n\
 Return a list of the words in the string s, using sep as the\n\
 delimiter string.  If maxsplit is nonzero, splits into at most\n\
-maxsplit words If sep is not specified, any whitespace string\n\
+maxsplit words If sep is not specified, any whitespace string\n\
 is a separator.  Maxsplit defaults to 0.\n\
 \n\
 (split and splitfields are synonymous)";