Message304119
| Author |
ncoghlan |
| Recipients |
Arfrever, amaury.forgeotdarc, andrewclegg, berwin22, chris.jerdonek, davispuh, eric.araujo, eryksun, mark, martin.panter, mightyiam, ncoghlan, pitrou, python-dev, r.david.murray, segfaulthunter, srid, steve.dower, vstinner |
| Date |
2017年10月11日.08:55:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1507712125.02.0.213398074469.issue6135@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This discussion should probably be submitted as a new RFE (requesting "text" as a more obvious and beginner friendly alias for universal_newlines), but I'll also add a note regarding precedent for a simple binary/text toggle: the mode settings for open().
There, the default is text (with the default encoding determined by the system), and you have to include "b" in the mode settings to say "I want raw binary".
For the subprocess APIs, the default is different (i.e. binary), so the natural counterpart to the "b" mode flag in open() would be an explicit "text" mode flag. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年10月11日 08:55:25 | ncoghlan | set | recipients:
+ ncoghlan, amaury.forgeotdarc, pitrou, vstinner, mark, eric.araujo, segfaulthunter, Arfrever, r.david.murray, srid, mightyiam, andrewclegg, chris.jerdonek, python-dev, martin.panter, eryksun, steve.dower, berwin22, davispuh |
| 2017年10月11日 08:55:25 | ncoghlan | set | messageid: <1507712125.02.0.213398074469.issue6135@psf.upfronthosting.co.za> |
| 2017年10月11日 08:55:25 | ncoghlan | link | issue6135 messages |
| 2017年10月11日 08:55:24 | ncoghlan | create |
|