[issue22459] str.strip() documentation: wrong example
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: docs@python components: Documentation messages: 227257 nosy: SebKL, docs@python priority: normal severity: normal status: open title: str.strip() documentation: wrong example type: enhancement versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22459 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22459] str.strip() documentation: wrong example
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22459] str.strip() documentation: wrong example
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22459 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22459] str.strip() documentation: wrong example
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22459] str.strip() documentation: wrong example
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) https://hg.python.org/cpython/rev/6dcc96fa3970 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22459 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com