Message189668
| Author |
nadeem.vawda |
| Recipients |
Arfrever, Michael.Fox, nadeem.vawda, pitrou, rhettinger, serhiy.storchaka, vstinner |
| Date |
2013年05月20日.14:42:42 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1369060963.08.0.432691945326.issue18003@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
No, that is the intended behavior for binary streams - they operate at
the level of individual byes. If you want to treat your input file as
Unicode-encoded text, you should open it in text mode. This will return a
TextIOWrapper which handles the decoding and line splitting properly. |
|