From ecbbd94e71d5e7dcf68d344f77b7a24331823dfc Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 11 May 2008 20:53:55 +0000 Subject: #2809 followup: even better split docstring. --- Objects/stringobject.c | 4 ++-- Objects/unicodeobject.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Objects/stringobject.c b/Objects/stringobject.c index b96aaf8..6ac15f5 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 935d8b6..6d693fe 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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) -- cgit v0.12