From bc552ce1b87f0047fada81b95e635cd9dd7487ec Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 5 Aug 2002 06:28:21 +0000 Subject: [PATCH] SF 582071 clarified the .split() method's docstring to note that sep=None will trigger splitting on any whitespace. --- Objects/stringobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/stringobject.c b/Objects/stringobject.c index c40bc185794..3c1b303a503 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -1126,8 +1126,8 @@ PyDoc_STRVAR(split__doc__, \n\ 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, any whitespace string\n\ -is a separator."); +splits are done. If sep is not specified or is None, any\n\ +whitespace string is a separator."); static PyObject * string_split(PyStringObject *self, PyObject *args)