summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-01-30 16:15:13 (GMT)
committerFred Drake <fdrake@acm.org>2002-01-30 16:15:13 (GMT)
commit1453754fcda8d9f48e484ce39e80ef5b27aada99 (patch)
tree1c8706fff91bfe6154d4f9bcf1a12c408153057b /Lib/string.py
parentcf6bfe49b13bdbb505ca3a31939cf6e2e2953808 (diff)
downloadcpython-1453754fcda8d9f48e484ce39e80ef5b27aada99.zip
cpython-1453754fcda8d9f48e484ce39e80ef5b27aada99.tar.gz
cpython-1453754fcda8d9f48e484ce39e80ef5b27aada99.tar.bz2
string.split() docstring described the interpretation of the maxsplit
argument incorrectly. This closes SF bug #505997.
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/string.py b/Lib/string.py
index d682fc7..a416530 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -107,9 +107,9 @@ def split(s, sep=None, maxsplit=-1):
"""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)