[New-bugs-announce] [issue21104] Read from file aborted

Alex Grinko report at bugs.python.org
Sun Mar 30 20:02:23 CEST 2014


New submission from Alex Grinko:

When reading from text file on Windows Python ends loop on character 0x1A
sample.py:
number = 0
with open("sample.txt",'r') as f:
    for line in f:
        number += 1
	print line
print "File has 8 lines, but Python could read only ",number

----------
components: Windows
files: sample.txt
messages: 215190
nosy: Alex.Grinko
priority: normal
severity: normal
status: open
title: Read from file aborted
type: behavior
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file34670/sample.txt

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


More information about the New-bugs-announce mailing list