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.

作者 eryksun
收信人 Arfrever, amaury.forgeotdarc, berwin22, chris.jerdonek, eric.araujo, eryksun, mark, martin.panter, mightyiam, ncoghlan, pitrou, r.david.murray, segfaulthunter, srid, steve.dower, vstinner
日期 2016-09-06.22:50:07
SpamBayes Score -1.0
Marked as misclassified
Message-id <1473202207.13.0.282597082424.issue6135@psf.upfronthosting.co.za>
In-reply-to
内容
Why do you need to call getpreferredencoding()? Isn't that already the default if you call TextIOWrapper with encoding as None? For example:

    text_mode = encoding or errors or universal_newlines

    self.stdin = io.open(p2cwrite, 'wb', bufsize)
    if text_mode:
        self.stdin = io.TextIOWrapper(self.stdin, write_through=True,
                                      line_buffering=(bufsize == 1),
                                      encoding=encoding, errors=errors)
历史
日期 用户 动作 参数
2016-09-06 22:50:07eryksun修改recipients: + eryksun, amaury.forgeotdarc, ncoghlan, pitrou, vstinner, mark, eric.araujo, segfaulthunter, Arfrever, r.david.murray, srid, mightyiam, chris.jerdonek, martin.panter, steve.dower, berwin22
2016-09-06 22:50:07eryksun修改messageid: <1473202207.13.0.282597082424.issue6135@psf.upfronthosting.co.za>
2016-09-06 22:50:07eryksun链接issue6135 messages
2016-09-06 22:50:07eryksun创建