Message320784
AFAIU, this change broke the following usage of subprocess on Windows
(re-using a subprocess.STARTUPINFO instance to hide the command window):
import os, subprocess
STARTUPINFO = subprocess.STARTUPINFO()
STARTUPINFO.dwFlags |= subprocess.STARTF_USESHOWWINDOW
STARTUPINFO.wShowWindow = subprocess.SW_HIDE
# raises OSError: [WinError 87]
# in the second loop iteration starting with Python 3.7
for i in range(2):
print(i)
with open(os.devnull, 'w') as stderr:
subprocess.check_call(['attrib'], stderr=stderr,
startupinfo=STARTUPINFO)
AFAICT, this works on Python 2.7, 3.4, 3.5, and 3.6 |
|
Date |
User |
Action |
Args |
2018-06-30 14:30:43 | xflr6 | set | recipients:
+ xflr6, gregory.p.smith, paul.moore, vstinner, tim.golden, Bernt.Røskar.Brenna, sbt, zach.ware, eryksun, steve.dower, Segev Finer |
2018-06-30 14:30:43 | xflr6 | set | messageid: <1530369043.09.0.56676864532.issue19764@psf.upfronthosting.co.za> |
2018-06-30 14:30:43 | xflr6 | link | issue19764 messages |
2018-06-30 14:30:43 | xflr6 | create | |
|