Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython (3.2): #14763: document default maxsplit value for str.split.

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

May 10, 2012, 5:33 AM

Post #1 of 1 (61 views)
Permalink
cpython (3.2): #14763: document default maxsplit value for str.split.

http://hg.python.org/cpython/rev/62659067f5b6
changeset: 76856:62659067f5b6
branch: 3.2
parent: 76852:e472481b6d73
user: Ezio Melotti <ezio.melotti [at] gmail>
date: Thu May 10 15:30:42 2012 +0300
summary:
#14763: document default maxsplit value for str.split.

files:
Doc/library/stdtypes.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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

--
Repository URL: http://hg.python.org/cpython

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.