[Tutor] How long can a line be for readline() or readlines() ??
((LONG)) file, example and console
alan.gauld@bt.com
alan.gauld@bt.com
Mon, 12 Nov 2001 13:34:17 -0000
> Lines under 2k go in without a hitch. The line I sent is one
> over the 2k limit.
This is a shot in the dark but....
Are you using the same test data each time? If so is it the
same line that fails each time? If so what happens if you
delete that line from the test file?
If that's the only line that fails have you tried printing
out the split lines?
for L in lineout: print "-------------\n" + L
It just might be that there's something strange happening in
the substitution or splitting of that particular line?
Just a thought,
Alan g.