summaryrefslogtreecommitdiff
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-08-05 06:28:21 +0000
committerRaymond Hettinger <python@rcn.com>2002-08-05 06:28:21 +0000
commitf192274ede9f5db50f10c8db61a018a68179907d (patch)
tree5cbf5de93e703b4d1b956010320c8a1e7d6f4800 /Objects/stringobject.c
parenta4d7bbba8cf6f8b4c3fd7843781f6a1adec528fe (diff)
downloadcpython-f192274ede9f5db50f10c8db61a018a68179907d.tar.gz
SF 582071 clarified the .split() method's docstring to note that sep=None
will trigger splitting on any whitespace.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
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)