[New-bugs-announce] [issue26128] Let the subprocess.STARTUPINFO constructor take arguments
Ram Rachum
report at bugs.python.org
Fri Jan 15 14:45:19 EST 2016
New submission from Ram Rachum:
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.
----------
components: Library (Lib), Windows
messages: 258324
nosy: cool-RR, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Let the subprocess.STARTUPINFO constructor take arguments
type: enhancement
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26128>
_______________________________________
More information about the New-bugs-announce
mailing list