mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
string.split() docstring described the interpretation of the maxsplit
argument incorrectly. This closes SF bug #505997.
This commit is contained in:
parent
cf6bfe49b1
commit
1453754fcd
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue