changeset: 76856:62659067f5b6 branch: 3.2 parent: 76852:e472481b6d73 user: Ezio Melotti date: Thu May 10 15:30:42 2012 +0300 files: Doc/library/stdtypes.rst description: #14763: document default maxsplit value for str.split. diff -r e472481b6d73 -r 62659067f5b6 Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Thu May 10 05:10:50 2012 +0200 +++ b/Doc/library/stdtypes.rst Thu May 10 15:30:42 2012 +0300 @@ -1304,8 +1304,8 @@ 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

AltStyle によって変換されたページ (->オリジナル) /