消息 [167488]
> Man page of Python says
>
> -u Force stdin, stdout and stderr to be totally unbuffered. On
> systems where it matters, also put stdin, stdout and stderr in
> binary mode.
I don't know which version it is, but current 3.3 says:
“Force the binary I/O layers of stdin, stdout and stderr to be
unbuffered. The text I/O layer will still be line-buffered.”
> test_httpservers depends on this behavior, but was implemented as
> documented in Python 3.
I would argue that test_httpservers is wrong, since it uses print() in a
CGI script where sys.stdout.buffer.write() should really be used. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2012-08-05 11:21:18 | pitrou | 修改 | recipients:
+ pitrou, loewis, georg.brandl, ishimoto, amaury.forgeotdarc, vstinner, flox, M..Z., python-dev |
| 2012-08-05 11:21:18 | pitrou | 链接 | issue13119 messages |
| 2012-08-05 11:21:18 | pitrou | 创建 | |
|