From: Raymond Hettinger Date: Mon, 5 Aug 2002 06:28:55 +0000 (+0000) Subject: SF 582071 clarified the .split() method's docstring to note that sep=None X-Git-Tag: v2.2.2b1~242 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bef3faa21e83256618eeb70ab8e7e95d69cccea;p=thirdparty%2FPython%2Fcpython.git SF 582071 clarified the .split() method's docstring to note that sep=None will trigger splitting on any whitespace. --- 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)