Kaydet (Commit) 1453754f authored tarafından Fred Drake's avatar Fred Drake

string.split() docstring described the interpretation of the maxsplit

argument incorrectly.
This closes SF bug #505997.
üst cf6bfe49
...@@ -107,9 +107,9 @@ def split(s, sep=None, maxsplit=-1): ...@@ -107,9 +107,9 @@ def split(s, sep=None, maxsplit=-1):
"""split(s [,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 Return a list of the words in the string s, using sep as the
delimiter string. If maxsplit is given, splits into at most delimiter string. If maxsplit is given, splits at no more than
maxsplit words. If sep is not specified, any whitespace string maxsplit places (resulting in at most maxsplit+1 words). If sep
is a separator. is not specified, any whitespace string is a separator.
(split and splitfields are synonymous) (split and splitfields are synonymous)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment