R. David Murray added the comment:
This requires (1) a doc update to indicate the problem and (2) a way to tell fileinput to *not* use readlines to optimize by calling readlines(bufsize), since in the case of using codecs it can be a problem. Presumably buffer=None would be the logical way to spell this.
I'm marking this as a doc bug, a separate issue should be opened for adding the fileinput buffer=None enhancement.
(The codec module's comments indicate there's no practical way to implement sizehint.)
----------
assignee: -> docs@python
components: +Documentation
nosy: +docs@python, r.david.murray
versions: +Python 3.3, Python 3.4
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue20501>
_______________________________________
Changes by Mark Lawrence <breamoreboy(a)yahoo.co.uk>:
----------
nosy: -BreamoreBoy
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue6128>
_______________________________________
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@python
components: Documentation
files: no_translation.py
messages: 209577
nosy: couplewavylines, docs@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(a)bugs.python.org>
<http://bugs.python.org/issue20423>
_______________________________________
New submission from Mark Dickinson:
The attached patch fills in some missing function attributes from the Python 2.7 datamodel docs.
----------
assignee: docs@python
components: Documentation
files: missing_function_attributes.patch
keywords: patch
messages: 205038
nosy: docs@python, mark.dickinson
priority: normal
severity: normal
status: open
title: Missing function attributes in 2.7 docs.
versions: Python 2.7
Added file: http://bugs.python.org/file32938/missing_function_attributes.patch
_______________________________________
Python tracker <report(a)bugs.python.org>
<http://bugs.python.org/issue19863>
_______________________________________