diff Objects/stringobject.c @ 46871:877783333eae legacy-trunk

#2809: elaborate str.split docstring a bit.
author Georg Brandl <georg@python.org>
date Sun, 11 May 2008 09:11:40 +0000
parents 1aaab32183f2
children 206700d749f0
line wrap: on
line diff
--- a/Objects/stringobject.c	Sun May 11 09:06:30 2008 +0000
+++ b/Objects/stringobject.c	Sun May 11 09:11:40 2008 +0000
@@ -1498,7 +1498,8 @@
 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.");
+whitespace string is a separator and leading and trailing\n\
+whitespace is stripped before splitting.");
 
 static PyObject *
 string_split(PyStringObject *self, PyObject *args)