diff options
author | Fred Drake <fdrake@acm.org> | 2002-01-30 16:15:59 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-01-30 16:15:59 (GMT) |
commit | 0179287003b8cd9e6f27d5479e19b4e34de067c5 (patch) | |
tree | 14743612fdbb485423383f166b38f50b98c31aa9 | |
parent | 0d55fc36e5db93834e7705acce45433ca0ecd865 (diff) | |
download | cpython-0179287003b8cd9e6f27d5479e19b4e34de067c5.zip cpython-0179287003b8cd9e6f27d5479e19b4e34de067c5.tar.gz cpython-0179287003b8cd9e6f27d5479e19b4e34de067c5.tar.bz2 |
string.split() docstring described the interpretation of the maxsplit
argument incorrectly.
This closes SF bug #505997.
-rw-r--r-- | Lib/string.py | 6 |
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) |