From 3bef3faa21e83256618eeb70ab8e7e95d69cccea Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 5 Aug 2002 06:28:55 +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 b73eaa8bfaf7..7311df04a400 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -1098,8 +1098,8 @@ static char 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) -- 2.47.3