[Python-checkins] r63050 - in python/trunk/Objects: stringobject.c unicodeobject.c
georg.brandl
python-checkins at python.org
Sun May 11 11:11:40 CEST 2008
Author: georg.brandl
Date: Sun May 11 11:11:40 2008
New Revision: 63050
Log:
#2809: elaborate str.split docstring a bit.
Modified:
python/trunk/Objects/stringobject.c
python/trunk/Objects/unicodeobject.c
Modified: python/trunk/Objects/stringobject.c
==============================================================================
--- python/trunk/Objects/stringobject.c (original)
+++ python/trunk/Objects/stringobject.c Sun May 11 11:11:40 2008
@@ -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)
Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c (original)
+++ python/trunk/Objects/unicodeobject.c Sun May 11 11:11:40 2008
@@ -7494,8 +7494,9 @@
\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 or is None,\n\
-any whitespace string is a separator.");
+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.");
static PyObject*
unicode_split(PyUnicodeObject *self, PyObject *args)
More information about the Python-checkins
mailing list