diff options
author | Raymond Hettinger <python@rcn.com> | 2005-04-19 04:29:44 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-04-19 04:29:44 (GMT) |
commit | 87bd3fe2663783a1b3d41f301514db57e9d78801 (patch) | |
tree | 20f3fea58c23d72c1b77e4c65a01b878088db7b7 | |
parent | 774479c68bf6953e89996c24287199d3f3331ba3 (diff) | |
download | cpython-87bd3fe2663783a1b3d41f301514db57e9d78801.zip cpython-87bd3fe2663783a1b3d41f301514db57e9d78801.tar.gz cpython-87bd3fe2663783a1b3d41f301514db57e9d78801.tar.bz2 |
Correct swapped descriptions of empty string splits.
-rw-r--r-- | Doc/lib/libstdtypes.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 03bccd9..fd58614 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -764,7 +764,7 @@ deemed to delimit empty strings (for example, \samp{'1,,2'.split(',')} returns \samp{['1', '', '2']}). The \var{sep} argument may consist of multiple characters (for example, \samp{'1, 2, 3'.split(', ')} returns \samp{['1', '2', '3']}). Splitting an empty string with a specified -separator returns an empty list. +separator returns \samp{['']}. If \var{sep} is not specified or is \code{None}, a different splitting algorithm is applied. First, whitespace characters (spaces, tabs, @@ -773,7 +773,7 @@ words are separated by arbitrary length strings of whitespace characters. Consecutive whitespace delimiters are treated as a single delimiter (\samp{'1 2 3'.split()} returns \samp{['1', '2', '3']}). Splitting an empty string or a string consisting of just whitespace -will return \samp{['']}. +returns an empty list. \end{methoddesc} \begin{methoddesc}[string]{splitlines}{\optional{keepends}} |