mirror of
https://github.com/python/cpython.git
synced 2024-11-28 04:15:11 +08:00
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\
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user