From: Raymond Hettinger Date: Wed, 26 Jan 2005 22:40:08 +0000 (+0000) Subject: SF bug #1108303: fix .split() maxsplit doc X-Git-Tag: v2.5a0~2076 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc029af436f90723e5b5bda4b9842d19153fe0a3;p=thirdparty%2FPython%2Fcpython.git SF bug #1108303: fix .split() maxsplit doc Docs incorrectly stated that maxsplit=0 would cause unlimited splitting. --- diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index f67b16d201b1..6355731d7b92 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -757,7 +757,7 @@ string this method is called on. Return a list of the words in the string, using \var{sep} as the delimiter string. If \var{maxsplit} is given, at most \var{maxsplit} splits are done. (thus, the list will have at most \code{\var{maxsplit}+1} -elements). If \var{maxsplit} is not specified or is zero, then there +elements). If \var{maxsplit} is not specified, then there is no limit on the number of splits (all possible splits are made). Consecutive delimiters are not grouped together and are deemed to delimit empty strings (for example, \samp{'1,,2'.split(',')}