From e4f13660f80d1324f066b32a6b54fce7d875635c Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 4 Nov 1999 19:19:48 +0000 Subject: =?UTF-8?q?split()=20docstring:=20=20Made=20signature=20and=20desc?= =?UTF-8?q?ription=20for=20the=20first=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20parameter=20match.=20=20Error=20poin?= =?UTF-8?q?ted=20out=20by=20Fran=C3=A7ois=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20Pinard=20=20on=20c.l.py.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/string.py | 4 ++-- Modules/stropmodule.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/string.py b/Lib/string.py index 2c3083e..a43da32 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -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) diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 4b8a501..7a56e37 100644 --- a/Modules/stropmodule.c +++ b/Modules/stropmodule.c @@ -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)"; -- cgit v0.12