[issue37549] os.dup() fails for standard streams on Windows 7
Josh Rosenberg
report at bugs.python.org
Wed Jul 10 14:38:20 EDT 2019
Josh Rosenberg <shadowranger+python at gmail.com> added the comment:
This seems likely to have been caused by the fixes for #37267, which fixes an issue with os.dup leaving character streams inheritable (when the documentation specifies that the result must be non-inheritable).
The code originally didn't try to make the descriptor non-inheritable because someone believed it wasn't allowed for character files, and the subsequent patch comments say "That was a mistake". Is it possible it wasn't allowed on Windows 7, and is allowed on Windows 10?
I'm nosying the folks from #37267 for input.
----------
nosy: +ZackerySpytz, josh.r, vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37549>
_______________________________________
More information about the Python-bugs-list
mailing list