[New-bugs-announce] [issue8630] Keepends param in codec readline(s)

André M. C. Campos report at bugs.python.org
Wed May 5 18:38:15 CEST 2010

New submission from André M. C. Campos <amccampos at gmail.com>:

Some methods in StreamReaderWriter class (codecs library) has different signatures from StreamReader methods. More precisely it's missing the keepends parameter in readline and readlines methods.

So, we cannot code:
fp = codecs.open(fileName, "r", "utf-8")
lines = fp.readlines(keepends=False)
line = fp.readline(keepends=False)

components: Library (Lib)
messages: 105056
nosy: amccampos
priority: normal
severity: normal
status: open
title: Keepends param in codec readline(s)
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list