Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 24562:9348fa20f214 2.2
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:55 +0000 |
| parents | 608735dd2ebc |
| children | 886686fc92a9 |
line wrap: on
line diff
--- a/Objects/stringobject.c Sun Aug 04 08:26:49 2002 +0000 +++ b/Objects/stringobject.c Mon Aug 05 06:28:55 2002 +0000 @@ -1098,8 +1098,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)
