diff Doc/lib/libstdtypes.tex @ 34508:13176ed52e65 2.4

SF bug #1108303: fix .split() maxsplit doc Docs incorrectly stated that maxsplit=0 would cause unlimited splitting.
author Raymond Hettinger <python@rcn.com>
date Wed, 26 Jan 2005 22:46:26 +0000
parents 68020bd1b9e2
children 19327db75d1c
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex	Tue Jan 25 12:43:57 2005 +0000
+++ b/Doc/lib/libstdtypes.tex	Wed Jan 26 22:46:26 2005 +0000
@@ -757,7 +757,7 @@
 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(',')}