summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorNicholas Bastin <nick.bastin@gmail.com>2004-03-21 16:59:59 (GMT)
committerNicholas Bastin <nick.bastin@gmail.com>2004-03-21 16:59:59 (GMT)
commit07973dab97e64f661120d817865b23d88f50b93b (patch)
tree7118ea878c983515d2032f8a4992084abc758fea /Doc/lib
parent5f112eb43b85dcb78795d2bd56fedac43e6a40c0 (diff)
downloadcpython-07973dab97e64f661120d817865b23d88f50b93b.zip
cpython-07973dab97e64f661120d817865b23d88f50b93b.tar.gz
cpython-07973dab97e64f661120d817865b23d88f50b93b.tar.bz2
Modified string.split documentation to reflect behaviour of splitting emtpy string. Closes SF bug #811604
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libstring.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex
index 11e31cf..abd6a07 100644
--- a/Doc/lib/libstring.tex
+++ b/Doc/lib/libstring.tex
@@ -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}}}