From: Raymond Hettinger Date: Mon, 5 Aug 2002 06:28:21 +0000 (+0000) Subject: SF 582071 clarified the .split() method's docstring to note that sep=None X-Git-Tag: v2.3c1~4706 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc552ce1b87f0047fada81b95e635cd9dd7487ec;p=python 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 c40bc18579..3c1b303a50 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)