[New-bugs-announce] [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:

>>> '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>

More information about the New-bugs-announce mailing list