[New-bugs-announce] [issue20423] io.StringIO newline param has wrong default

couplewavylines report at bugs.python.org
Tue Jan 28 20:24:38 CET 2014


New submission from couplewavylines:

In io.StringIO, the newline argument's default is currently documented as "newline=None" in the section header. However, it's described this way:  "The default is to do no newline translation."  The behavior of io.StringIO is consistent with this description (NO newline translation). 
The header should actually read "newline=''".
"newline=None" would mean there IS newline translation by default, which is not the case. Code sample attached as no_translation.py.

----------
assignee: docs at python
components: Documentation
files: no_translation.py
messages: 209577
nosy: couplewavylines, docs at python
priority: normal
severity: normal
status: open
title: io.StringIO newline param has wrong default
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33779/no_translation.py

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


More information about the New-bugs-announce mailing list