diff options
author | Raymond Hettinger <python@rcn.com> | 2002-08-05 06:28:21 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-08-05 06:28:21 +0000 |
commit | f192274ede9f5db50f10c8db61a018a68179907d (patch) | |
tree | 5cbf5de93e703b4d1b956010320c8a1e7d6f4800 /Objects/stringobject.c | |
parent | a4d7bbba8cf6f8b4c3fd7843781f6a1adec528fe (diff) | |
download | cpython-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.c | 4 |
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) |