STINNER Victor added the comment: os.dup2() is really a special case for inheritable file descriptors. See the PEP 446. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22722> _______________________________________