[issue22459] str.strip() documentation: wrong example

2014-09-22 Thread SebKL
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:

[issue22459] str.strip() documentation: wrong example

2014-09-22 Thread Raúl Cumplido
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

[issue22459] str.strip() documentation: wrong example

2014-09-22 Thread Raúl Cumplido
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 ___

[issue22459] str.strip() documentation: wrong example

2014-09-22 Thread Josh Rosenberg
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 ___

[issue22459] str.strip() documentation: wrong example

2014-09-22 Thread Roundup Robot
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)