]> granicus.if.org Git - python/commitdiff
SF 582071 clarified the .split() method's docstring to note that sep=None
authorRaymond Hettinger <python@rcn.com>
Mon, 5 Aug 2002 06:28:21 +0000 (06:28 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 5 Aug 2002 06:28:21 +0000 (06:28 +0000)
will trigger splitting on any whitespace.

Objects/stringobject.c

index c40bc1857945f60d5c2eeed3fb5e7bbf80169814..3c1b303a503ed73c2155c9f561c33620c2be3d68 100644 (file)
@@ -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)