Author xflr6
Recipients Bernt.Røskar.Brenna, Segev Finer, eryksun, gregory.p.smith, paul.moore, sbt, steve.dower, tim.golden, vstinner, xflr6, zach.ware
Date 2018-06-30.14:30:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530369043.09.0.56676864532.issue19764@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-06-30 14:30:43xflr6setrecipients: + 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:43xflr6setmessageid: <1530369043.09.0.56676864532.issue19764@psf.upfronthosting.co.za>
2018-06-30 14:30:43xflr6linkissue19764 messages
2018-06-30 14:30:43xflr6create