[Python-checkins] python/dist/src/Objects unicodeobject.c, 2.224, 2.225

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


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

Modified Files:
	unicodeobject.c 
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: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.224
retrieving revision 2.225
diff -u -d -r2.224 -r2.225
--- unicodeobject.c	7 Sep 2004 20:24:22 -0000	2.224
+++ unicodeobject.c	14 Sep 2004 09:40:44 -0000	2.225
@@ -5987,8 +5987,8 @@
 \n\
 Return a list of the words in S, using sep as the\n\
 delimiter string.  If maxsplit is given, at most maxsplit\n\
-splits are done. If sep is not specified, any whitespace string\n\
-is a separator.");
+splits are done. If sep is not specified or None,
+any whitespace string is a separator.");
 
 static PyObject*
 unicode_split(PyUnicodeObject *self, PyObject *args)



More information about the Python-checkins mailing list