mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -282,7 +282,7 @@ def split(s, sep=None, maxsplit=-1):
|
|||
Return a list of the words in the string s, using sep as the
|
||||
delimiter string. If maxsplit is given, splits at no more than
|
||||
maxsplit places (resulting in at most maxsplit+1 words). If sep
|
||||
is not specified, any whitespace string is a separator.
|
||||
is not specified or None, any whitespace string is a separator.
|
||||
|
||||
(split and splitfields are synonymous)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue