[New-bugs-announce] [issue37549] os.dup() fails for standard streams on Windows 7
DaveB
report at bugs.python.org
Wed Jul 10 13:52:05 EDT 2019
New submission from DaveB <junkmail4dave at gmail.com>:
os.dup(fd) generates an OSError for standard streams (0: stdin, 1: stdout, 2: stderr) on Windows 7. Works as expected on Windows 10.
Working backwards we found the issue first appears in Python 3.7.4rc1 and 3.8.0b2 on Windows 7. Earlier releases work as expected.
>>> import os
>>> os.dup(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [WinError 87] The parameter is incorrect
>>>
----------
components: Extension Modules
messages: 347627
nosy: daveb
priority: normal
severity: normal
status: open
title: os.dup() fails for standard streams on Windows 7
type: behavior
versions: Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37549>
_______________________________________
More information about the New-bugs-announce
mailing list