]> granicus.if.org Git - python/commitdiff
#2809 followup: even better split docstring.
authorGeorg Brandl <georg@python.org>
Sun, 11 May 2008 20:53:55 +0000 (20:53 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 11 May 2008 20:53:55 +0000 (20:53 +0000)
Objects/stringobject.c
Objects/unicodeobject.c

index b96aaf85b62d2a1c21f905bdb950ee30b477a4d6..6ac15f5b64d96ff23e4084de66080a5608d67cdf 100644 (file)
@@ -1502,8 +1502,8 @@ PyDoc_STRVAR(split__doc__,
 Return a list of the words in the string S, using sep as the\n\
 delimiter string.  If maxsplit is given, at most maxsplit\n\
 splits are done. If sep is not specified or is None, any\n\
-whitespace string is a separator and leading and trailing\n\
-whitespace is stripped before splitting.");
+whitespace string is a separator and empty strings are removed\n\
+from the result.");
 
 static PyObject *
 string_split(PyStringObject *self, PyObject *args)
index 935d8b6652815bc6e3d5f3c3e9c410d0215d58d6..6d693fe7b69b83b57d8f8c09569a5fa594e918af 100644 (file)
@@ -7495,8 +7495,8 @@ PyDoc_STRVAR(split__doc__,
 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 or is None, any\n\
-whitespace string is a separator and leading and trailing\n\
-whitespace is stripped before splitting.");
+whitespace string is a separator and empty strings are\n\
+removed from the result.");
 
 static PyObject*
 unicode_split(PyUnicodeObject *self, PyObject *args)