summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-05-10 12:30:42 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-05-10 12:30:42 (GMT)
commitbf3165b971d3fe9ad426beacc9bcf926c9d45267 (patch)
tree4fb182889695d5c1b56da0884f6f50a0b8e019c8 /Doc
parent7f0d88860f04d6411dbc1218bf78d9ec5ce153b8 (diff)
downloadcpython-bf3165b971d3fe9ad426beacc9bcf926c9d45267.zip
cpython-bf3165b971d3fe9ad426beacc9bcf926c9d45267.tar.gz
cpython-bf3165b971d3fe9ad426beacc9bcf926c9d45267.tar.bz2
#14763: document default maxsplit value for str.split.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 153ee44..d46cee5 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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