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 schmir
Recipients Finkregh, Rebecca, ajaksu2, falsetru, georg.brandl, nvetoshkin, pitrou, python-dev, schmir, vstinner
Date 2011-05-10.09:30:03
SpamBayes Score 1.395742e-05
Marked as misclassified No
Message-id <1305019804.12.0.435691335808.issue1195@psf.upfronthosting.co.za>
In-reply-to
Content
Either you clearerr or you can't rely on feof. fgets might also set the end of file indicator *and* return valid data. I don't see a reason to not call clearerr right before trying to read from the stream.
History
Date User Action Args
2011-05-10 09:30:04schmirsetrecipients: + schmir, georg.brandl, pitrou, falsetru, vstinner, ajaksu2, Rebecca, nvetoshkin, Finkregh, python-dev
2011-05-10 09:30:04schmirsetmessageid: <1305019804.12.0.435691335808.issue1195@psf.upfronthosting.co.za>
2011-05-10 09:30:03schmirlinkissue1195 messages
2011-05-10 09:30:03schmircreate