Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 24561:b25c31e008c8 legacy-trunk
SF 582071 clarified the .split() method's docstring to note that sep=None
will trigger splitting on any whitespace.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 05 Aug 2002 06:28:21 +0000 |
| parents | f5cfa0ee02cf |
| children | 12e146171f3d |
line wrap: on
line diff
--- a/Objects/stringobject.c Mon Aug 05 03:55:36 2002 +0000 +++ b/Objects/stringobject.c Mon Aug 05 06:28:21 2002 +0000 @@ -1126,8 +1126,8 @@ \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)
