summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSubhendu Ghosh <subho.prp@gmail.com>2017-02-25 14:59:05 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2017-02-25 14:59:05 (GMT)
commitae160bba2030a7b6c86f6c7aeaf2f9d3fdb627b7 (patch)
tree82df8ee0582f8a14dba8154fdd18b5383ac21f62 /Doc
parent21024f06622c4c55b666adb130797a4ee205d005 (diff)
downloadcpython-ae160bba2030a7b6c86f6c7aeaf2f9d3fdb627b7.zip
cpython-ae160bba2030a7b6c86f6c7aeaf2f9d3fdb627b7.tar.gz
cpython-ae160bba2030a7b6c86f6c7aeaf2f9d3fdb627b7.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/subprocess.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index ea065b8..e9ba15e 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -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
^^^^^^^^^