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

Reply via email to