[issue10797] Wrong detection of lines in readlines() function

Miso.Kopera report at bugs.python.org
Thu Dec 30 21:09:34 CET 2010


New submission from Miso.Kopera <Miso.Kopera at gmail.com>:

bug in "file.readlines()" function. It doesn't detect end of the line when line is ending only with 0x0D byte. In python3.1 it works fine (as I expect). File in attachment should has 6 lines not only 1 as python2.7 returns.

----------
components: None
files: testFile
messages: 124932
nosy: Miso.Kopera
priority: normal
severity: normal
status: open
title: Wrong detection of lines in readlines() function
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file20197/testFile

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


More information about the Python-bugs-list mailing list