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.

作者 pitrou
收信人 fabioz, pitrou, vstinner
日期 2008-12-28.10:27:48
SpamBayes Score 1.3345025e-10
Marked as misclassified
Message-id <1230460069.6361.3.camel@localhost>
In-reply-to <1230427431.01.0.919334227667.issue4705@psf.upfronthosting.co.za>
内容
> pitrou's patch changes PyFile_FromFd() behaviour for a text file 
> opened with buffering=0:
>   /* As a convenience, when buffering == 0 on a text file, we
>      open the underlying binary stream in unbuffered mode and
>      wrap it with a text stream in line-buffered mode. */
> 
> Why changing PyFile_FromFd() and not io.open() directly?

I must admit I'm a bit lazy, and changing io.open() means changing a
fundamental public API, as Guido said on python-dev, so more discussion
and some parts of the patches delayed to 3.1. If someone else wants to
do it, please don't hesitate...

> Note: I prefer Py_UnbufferedStdoutFlag=1 instead of 
> Py_UnbufferedStdoutFlag++ (for -u command line option).

Well, I minimally changed the existing code.
历史
日期 用户 动作 参数
2008-12-28 10:27:51pitrou修改recipients: + pitrou, vstinner, fabioz
2008-12-28 10:27:50pitrou链接issue4705 messages
2008-12-28 10:27:48pitrou创建