[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex, 1.170.2.6, 1.170.2.7

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Tue Apr 19 06:31:40 CEST 2005


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3942

Modified Files:
      Tag: release24-maint
	libstdtypes.tex 
Log Message:
Correct swapped descriptions of empty string splits.

Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.170.2.6
retrieving revision 1.170.2.7
diff -u -d -r1.170.2.6 -r1.170.2.7
--- libstdtypes.tex	10 Apr 2005 17:36:26 -0000	1.170.2.6
+++ libstdtypes.tex	19 Apr 2005 04:31:38 -0000	1.170.2.7
@@ -764,7 +764,7 @@
 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 @@
 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}}



More information about the Python-checkins mailing list