#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:
Ezio Melotti 2012-02-26 09:39:55 +02:00
parent 408026c7e8
commit cda6b6d60d
7 changed files with 80 additions and 27 deletions

View file

@ -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,