mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Enhance the docstrings for unicode.split() and string.split()
to make it clear that it is possible to pass None as the separator argument to get the default "any whitespace" separator.
This commit is contained in:
parent
266a436fe2
commit
782afc5927
2 changed files with 3 additions and 3 deletions
|
@ -5987,8 +5987,8 @@ PyDoc_STRVAR(split__doc__,
|
|||
\n\
|
||||
Return a list of the words in 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 None,
|
||||
any whitespace string is a separator.");
|
||||
|
||||
static PyObject*
|
||||
unicode_split(PyUnicodeObject *self, PyObject *args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue