Commit 07973dab authored by Nicholas Bastin's avatar Nicholas Bastin

Modified string.split documentation to reflect behaviour of splitting emtpy...

Modified string.split documentation to reflect behaviour of splitting emtpy string.  Closes SF bug #811604
parent 5f112eb4
......@@ -213,6 +213,11 @@ The functions defined in this module are:
and the remainder of the string is returned as the final element of
the list (thus, the list will have at most \code{\var{maxsplit}+1}
elements).
The behavior of split on an empty string depends on the value of \var{sep}.
If \var{sep} is not specified, or specified as \code{None}, the result will
be an empty list. If \var{sep} is specified as any string, the result will
be a list containing one element which is an empty string.
\end{funcdesc}
\begin{funcdesc}{rsplit}{s\optional{, sep\optional{, maxsplit}}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment