diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-05-10 12:30:42 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-05-10 12:30:42 (GMT) |
| commit | 35d03ed832cb7f3127794b218aac86fae93b8354 (patch) | |
| tree | 4b7d76ecc1a2a8e0d5225fe4bb09284df4986615 | |
| parent | f2011e3e49a91e613bbe69a198c2b2239cb874a6 (diff) | |
| download | cpython-35d03ed832cb7f3127794b218aac86fae93b8354.zip cpython-35d03ed832cb7f3127794b218aac86fae93b8354.tar.gz cpython-35d03ed832cb7f3127794b218aac86fae93b8354.tar.bz2 | |
#14763: document default maxsplit value for str.split.
| -rw-r--r-- | Doc/library/stdtypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index ad0b552..cebe752 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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 |
