This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cool-RR
Recipients cool-RR, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-01-15.19:45:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452887119.07.0.716350004713.issue26128@psf.upfronthosting.co.za>
In-reply-to
Content
Right now when you want to use `subprocess.STARTUPINFO`, you need to do something like this: 

    si = subprocess.STARTUPINFO()
    si.dwFlags = subprocess.STARTF_USESTDHANDLES
    subprocess.Popen(['whatever'], startupinfo=si)

It would be much nicer to do this: 

    subprocess.Popen(
        ['whatever'],
        startupinfo=subprocess.STARTUPINFO(
            subprocess.STARTF_USESTDHANDLES
        )
    )

So I suggest that the `STARTUPINFO` constructor take an optional argument that sets the flags on it.
History
Date User Action Args
2016-01-15 19:45:19cool-RRsetrecipients: + cool-RR, paul.moore, tim.golden, zach.ware, steve.dower
2016-01-15 19:45:19cool-RRsetmessageid: <1452887119.07.0.716350004713.issue26128@psf.upfronthosting.co.za>
2016-01-15 19:45:18cool-RRlinkissue26128 messages
2016-01-15 19:45:18cool-RRcreate