Message394413
| 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. |
|