summaryrefslogtreecommitdiff
path: root/Lib/string.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-11-04 19:19:48 +0000
committerFred Drake <fdrake@acm.org>1999-11-04 19:19:48 +0000
commitabcc75eb82a0a364b522224e5bf816f3539fc38c (patch)
tree41df2a836d370549e63f6577ede8db042a34eadb /Lib/string.py
parent19f694173b93f73269d75a0472e212ca41203e79 (diff)
downloadcpython-abcc75eb82a0a364b522224e5bf816f3539fc38c.tar.gz
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.
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/string.py b/Lib/string.py
index 2c3083e221..a43da32766 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)