diff options
author | Raymond Hettinger <python@rcn.com> | 2002-08-05 06:28:21 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-08-05 06:28:21 (GMT) |
commit | bc552ce1b87f0047fada81b95e635cd9dd7487ec (patch) | |
tree | e01a19184a5e1836894921923ca0b51b442a74cf /Objects | |
parent | acb45d72b45edded54a0e5203713759eec3c8802 (diff) | |
download | cpython-bc552ce1b87f0047fada81b95e635cd9dd7487ec.zip cpython-bc552ce1b87f0047fada81b95e635cd9dd7487ec.tar.gz cpython-bc552ce1b87f0047fada81b95e635cd9dd7487ec.tar.bz2 |
SF 582071 clarified the .split() method's docstring to note that sep=None
will trigger splitting on any whitespace.
Diffstat (limited to 'Objects')
-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 c40bc18..3c1b303 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) |