mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
#14081: The sep and maxsplit parameter to str.split, bytes.split, and bytearray.split may now be passed as keyword arguments.
This commit is contained in:
parent
408026c7e8
commit
cda6b6d60d
7 changed files with 80 additions and 27 deletions
|
|
@ -1301,7 +1301,7 @@ functions based on regular expressions.
|
|||
two empty strings, followed by the string itself.
|
||||
|
||||
|
||||
.. method:: str.rsplit([sep[, maxsplit]])
|
||||
.. method:: str.rsplit(sep=None, maxsplit=-1)
|
||||
|
||||
Return a list of the words in the string, using *sep* as the delimiter string.
|
||||
If *maxsplit* is given, at most *maxsplit* splits are done, the *rightmost*
|
||||
|
|
@ -1323,7 +1323,7 @@ functions based on regular expressions.
|
|||
'mississ'
|
||||
|
||||
|
||||
.. method:: str.split([sep[, maxsplit]])
|
||||
.. method:: str.split(sep=None, maxsplit=-1)
|
||||
|
||||
Return a list of the words in the string, using *sep* as the delimiter
|
||||
string. If *maxsplit* is given, at most *maxsplit* splits are done (thus,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue