[issue21104] Read from file aborted

2014-03-30 Thread Alex Grinko
Changes by Alex Grinko : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21104] Read from file aborted

2014-03-30 Thread eryksun
eryksun added the comment: AFAIK, this doesn't affect Python 3 under normal circumstances. A file could be manually set to text mode by calling msvcrt.setmode(f.fileno(), os.O_TEXT), but that's out of the norm. In Python 2, on Windows interpreting ctrl+z (0x1a) as end-of-file is normal behavi

[issue21104] Read from file aborted

2014-03-30 Thread Alex Grinko
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 -- com