Index: libstdtypes.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v retrieving revision 1.172 diff -u -r1.172 libstdtypes.tex --- libstdtypes.tex 1 Jan 2005 00:28:43 -0000 1.172 +++ libstdtypes.tex 24 Jan 2005 12:12:43 -0000 @@ -737,8 +737,11 @@ \begin{methoddesc}[string]{rsplit}{\optional{sep \optional{,maxsplit}}} 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, the \emph{rightmost} ones. If \var{sep} is not specified -or \code{None}, any whitespace string is a separator. +splits are done, the \emph{rightmost} ones (thus, the list will have at +most \code{\var{maxsplit}+1} elements). If \var{maxsplit} is not specified +or is less than zero, then there is no limit on the number of splits +(all possible splits are made). If \var{sep} is not specified or +\code{None}, any whitespace string is a separator. \versionadded{2.4} \end{methoddesc} @@ -754,9 +757,9 @@ \begin{methoddesc}[string]{split}{\optional{sep \optional{,maxsplit}}} 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 -is no limit on the number of splits (all possible splits are made). +splits are done (thus, the list will have at most \code{\var{maxsplit}+1} +elements). If \var{maxsplit} is not specified or is less than zero, 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(',')} returns \samp{['1', '', '2']}). The \var{sep} argument may consist of