[docs] [issue22673] document the special features (eg: fdclose=False) of the standard streams
Akira Li
report at bugs.python.org
Thu Dec 25 07:02:41 CET 2014
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-1-on-a-posix-system
[2] http://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-python/22434262#22434262
----------
nosy: +akira
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22673>
_______________________________________
More information about the docs
mailing list