开发者

How can I create an unbuffered I/O multiplexer in Python?

开发者 https://www.devze.com 2023-02-15 07:42 出处:网络
I want a console python script that will receive input on std开发者_JS百科in and immediately write it out to stdout and stderr simultaneously. This should be unbuffered both on input and output.

I want a console python script that will receive input on std开发者_JS百科in and immediately write it out to stdout and stderr simultaneously. This should be unbuffered both on input and output.

How would I do this? I assume it's pretty basic, once you know the trick.


look at this

Disable output buffering

0

精彩评论

暂无评论...
验证码 换一张
取 消