Inada Naoki <songofaca...@gmail.com> added the comment:
> I did consider and confirm that mode="rb" does also provide a uniform > solution, but it also regresses the behavior of uncompressed inputs, making > them bytes where they were text. Of course, I suggested to use "rb" when you want to read bytes. * When reading binary from uncompressed file, mode="rb" just works for 3.6+. * When reading text from uncompressed file, mode="r" just works for 3.6+. * When reading binary from compressed file, mode="rb" just works for 3.6+. * Reading text from compressed file is not supported until Python 3.10. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue5758> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com