mirror of https://github.com/python/cpython.git
SF 582071 clarified the .split() method's docstring to note that sep=None
will trigger splitting on any whitespace.
This commit is contained in:
parent
acb45d72b4
commit
bc552ce1b8
|
@ -1126,8 +1126,8 @@ PyDoc_STRVAR(split__doc__,
|
||||||
\n\
|
\n\
|
||||||
Return a list of the words in the string S, using sep as the\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\
|
delimiter string. If maxsplit is given, at most maxsplit\n\
|
||||||
splits are done. If sep is not specified, any whitespace string\n\
|
splits are done. If sep is not specified or is None, any\n\
|
||||||
is a separator.");
|
whitespace string is a separator.");
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
string_split(PyStringObject *self, PyObject *args)
|
string_split(PyStringObject *self, PyObject *args)
|
||||||
|
|
Loading…
Reference in New Issue