]> granicus.if.org Git - python/commitdiff
#14763: document default maxsplit value for str.split.
authorEzio Melotti <ezio.melotti@gmail.com>
Thu, 10 May 2012 12:30:42 +0000 (15:30 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Thu, 10 May 2012 12:30:42 +0000 (15:30 +0300)
Doc/library/stdtypes.rst

index ad0b5521c346910202a724367b8b6300c84a78fb..cebe7528e81d25094ec623d0df71aa0a5e78353f 100644 (file)
@@ -1161,8 +1161,8 @@ string 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