#14763: document default maxsplit value for str.split.

This commit is contained in:
Ezio Melotti 2012-05-10 15:30:42 +03:00
parent 7f0d88860f
commit bf3165b971
1 changed files with 2 additions and 2 deletions

View File

@ -1304,8 +1304,8 @@ functions based on regular expressions.
Return a list of the words in the string, using *sep* as the delimiter
string. If *maxsplit* is given, at most *maxsplit* splits are done (thus,
the list will have at most ``maxsplit+1`` elements). If *maxsplit* is not
specified, then there is no limit on the number of splits (all possible
splits are made).
specified or ``-1``, then there is no limit on the number of splits
(all possible splits are made).
If *sep* is given, consecutive delimiters are not grouped together and are
deemed to delimit empty strings (for example, ``'1,,2'.split(',')`` returns