[Python-bugs-list] [ python-Bugs-690285 ] lines run together on input
SourceForge.net
noreply@sourceforge.net
Sat, 22 Feb 2003 15:25:23 -0800
Bugs item #690285, was opened at 2003-02-20 16:12
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=690285&group_id=5470
Category: Python Library
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas B Hickey (thomasbhickey)
Assigned to: Nobody/Anonymous (nobody)
Summary: lines run together on input
Initial Comment:
Using 'for line in file('xxxxx'):' on a large (>4 Gbyte) text file
3/4 of the way into the file occasionally two lines will be
merged into one. Happens consistently at the same lines.
Counting lines this way always comes up short. Changing
the open to 'rb' fixes the problem. These lines are
terminated by '\n' even though we are running on a PC.
Haven't tried the universal newline mode in 2.3a, but would
be willing to.
Running on Windows NT 2000, 2.2.2 (#37 Oct 14, 2002).
Same problem seen in 2.2.1.
----------------------------------------------------------------------
>Comment By: Thomas B Hickey (thomasbhickey)
Date: 2003-02-22 18:25
Message:
Logged In: YES
user_id=274109
We have repeated this same problem with C, so the bug does
not seem to be peculiar to python.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=690285&group_id=5470