[issue37549] os.dup() fails for standard streams on Windows 7

DaveB report at bugs.python.org
Wed Jul 10 19:57:40 EDT 2019


DaveB <junkmail4dave at gmail.com> added the comment:

Results with Python 3.7.4 on Windows 7

>>> import os, msvcrt
>>> msvcrt.get_osfhandle(0)
15
>>> os.set_handle_inheritable(msvcrt.get_osfhandle(0), False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [WinError 87] The parameter is incorrect
>>>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37549>
_______________________________________


More information about the Python-bugs-list mailing list