mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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:
parent
21024f0662
commit
ae160bba20
5 changed files with 32 additions and 7 deletions
|
@ -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
|
||||
^^^^^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue