New submission from SebKL:
The following example is wrong:
https://docs.python.org/3.4/library/stdtypes.html?highlight=split#str.split
'1,2,3'.split(',', maxsplit=1)
['1', '2 3']
Is actually returning (note the missing , ):
'1,2,3'.split(',', maxsplit=1)
['1', '2,3']
--
assignee:
Raúl Cumplido added the comment:
As it is a simple one I will try to submit a patch today or tomorrow. This will
be my first contribution to Python.
--
nosy: +raulcd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22459
Raúl Cumplido added the comment:
It was also incorrect on the example for bytes split:
b'1,2,3'.split(b',', maxsplit=1)
[b'1', b'2 3']
Patch submitted.
--
keywords: +patch
Added file: http://bugs.python.org/file36692/issue22459.patch
___
Josh Rosenberg added the comment:
LGTM. About a straightforward as it gets.
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22459
___
Roundup Robot added the comment:
New changeset 8eb4eec8626c by Benjamin Peterson in branch '3.4':
fix error in split() examples (closes #22459)
https://hg.python.org/cpython/rev/8eb4eec8626c
New changeset 6dcc96fa3970 by Benjamin Peterson in branch 'default':
merge 3.4 (#22459)