bpo-26128: Added __init__to subprocess.STARTUPINFO (#171)

The Windows-specific subprocess.STARTUPINFO class now accepts
keyword-only arguments to its constructor to set the various
data attributes.

Patch by Subhendu Ghosh.
This commit is contained in:
Subhendu Ghosh 2017-02-25 20:29:05 +05:30 committed by Nick Coghlan
parent 21024f0662
commit ae160bba20
5 changed files with 32 additions and 7 deletions

View file

@ -746,7 +746,8 @@ on Windows.
Partial support of the Windows
`STARTUPINFO <https://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx>`__
structure is used for :class:`Popen` creation.
structure is used for :class:`Popen` creation. The following attributes can be set
by passing them as keyword-only arguments.
.. attribute:: dwFlags
@ -788,6 +789,8 @@ on Windows.
:data:`SW_HIDE` is provided for this attribute. It is used when
:class:`Popen` is called with ``shell=True``.
.. versionchanged:: 3.7
*Keyword-only argument* support was added.
Constants
^^^^^^^^^