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

SebKL report at bugs.python.org
Mon Sep 22 10:32:10 CEST 2014


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 at python
components: Documentation
messages: 227257
nosy: SebKL, docs at python
priority: normal
severity: normal
status: open
title: str.strip() documentation: wrong example
type: enhancement
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22459>
_______________________________________


More information about the docs mailing list