[issue22673] document the special features (eg: fdclose=False) of the standard streams
Akira Li added the comment:
Two minor details:
1. It is possible that `fileno(stdout) != 1` even in C [1].
I don't know what happens if the code from the answer is
run on Windows.
In principle, it may break eryksun's workaround. I don't
know how likely it is in practice.
2. you can redirect at the file descriptor level in Python [2]
using os.dup2(). I don't know whether the code in the
answer works on Windows.
[1] http://stackoverflow.com/questions/25516375/is-it-possible-that-filenostdout...
[2] http://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-pyth...
----------
nosy: +akira
_______________________________________
Python tracker
participants (1)
-
Akira Li