This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients Richard.Christen@unice.fr, gvanrossum, pythonmeister
Date 2007-09-10.21:55:28
SpamBayes Score 0.10564164
Marked as misclassified No
Message-id <1189461329.47.0.127999464531.issue1142@psf.upfronthosting.co.za>
In-reply-to
Content
PythonMeister, what do you mean, "confirmed"? Your read loop ends printing 

('total lines read ', 85014960)

which is the expected output.  (It's one less than the number of lines
written due to a bug in the program -- it prints the 0-based ordinal of
the last line written rather than the total number of lines written,
which is one more. But the bug is the same in the input and output loop.
 Richard's output from the read loop was

('total lines read ', 85014950)

i.e. 10 less than written.

I wonder if the bug is simply a matter of a failure to flush on Windows?
 I can't reproduce it on Linux (Ubuntu dapper).

Richard, can you somehow view the end of the file to see what its last
lines actually are?  It should end like this:

85014951
85014952
85014953
85014954
85014955
85014956
85014957
85014958
85014959
85014960
History
Date User Action Args
2007-09-10 21:55:29gvanrossumsetspambayes_score: 0.105642 -> 0.10564164
recipients: + gvanrossum, pythonmeister, Richard.Christen@unice.fr
2007-09-10 21:55:29gvanrossumsetspambayes_score: 0.105642 -> 0.105642
messageid: <1189461329.47.0.127999464531.issue1142@psf.upfronthosting.co.za>
2007-09-10 21:55:29gvanrossumlinkissue1142 messages
2007-09-10 21:55:28gvanrossumcreate