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 methane
Recipients amaury.forgeotdarc, eric.araujo, jaraco, methane, mnewman, r.david.murray, tati_alchueyr
Date 2021-05-26.03:46:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622000778.08.0.693676824588.issue5758@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2021-05-26 03:46:18methanesetrecipients: + methane, amaury.forgeotdarc, jaraco, eric.araujo, r.david.murray, mnewman, tati_alchueyr
2021-05-26 03:46:18methanesetmessageid: <1622000778.08.0.693676824588.issue5758@roundup.psfhosted.org>
2021-05-26 03:46:18methanelinkissue5758 messages
2021-05-26 03:46:17methanecreate