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

775 views Asked by At

I want a console python script that will receive input on stdin 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.

1

There are 1 answers

0
jojo On