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 martin.panter
Recipients Thomas Güttler, ethan.furman, guettli, lars.gustaebel, martin.panter
Date 2015-05-28.08:20:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432801206.79.0.940161072863.issue24259@psf.upfronthosting.co.za>
In-reply-to
Content
If you are already seeking in the file, can’t you seek to the end to determine the length of the file, and then use that to verify if a data segment is truncated? And if you can’t seek, I guess you have to read all the bytes anyway.

I guess Ethan’s test was an instance of case #4 (EOF directly after data block).
History
Date User Action Args
2015-05-28 08:20:06martin.pantersetrecipients: + martin.panter, guettli, lars.gustaebel, ethan.furman, Thomas Güttler
2015-05-28 08:20:06martin.pantersetmessageid: <1432801206.79.0.940161072863.issue24259@psf.upfronthosting.co.za>
2015-05-28 08:20:06martin.panterlinkissue24259 messages
2015-05-28 08:20:06martin.pantercreate