[Python-checkins] python/dist/src/Lib string.py,1.80,1.81

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Tue Sep 14 11:40:48 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16636/Lib

Modified Files:
	string.py 
Log Message:
Enhance the docstrings for unicode.split() and string.split()
to make it clear that it is possible to pass None as the
separator argument to get the default "any whitespace" separator.


Index: string.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/string.py,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- string.py	14 Sep 2004 02:34:08 -0000	1.80
+++ string.py	14 Sep 2004 09:40:45 -0000	1.81
@@ -282,7 +282,7 @@
     Return a list of the words in the string s, using sep as the
     delimiter string.  If maxsplit is given, splits at no more than
     maxsplit places (resulting in at most maxsplit+1 words).  If sep
-    is not specified, any whitespace string is a separator.
+    is not specified or None, any whitespace string is a separator.
 
     (split and splitfields are synonymous)
 



More information about the Python-checkins mailing list