On 11Nov2020 07:30, Chris Angelico <ros...@gmail.com> wrote:
>If the script's assuming it'll mostly work on small text files, it
>might be very annoying to suddenly read in a 4GB blob of video file
>just to find out that it's not text.

You can abort as soon as the decode fails. Which will usually be pretty 
early for video.

Cheers,
Cameron Simpson <c...@cskk.id.au>
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to