summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-03-01 09:51:55 (GMT)
committerGitHub <noreply@github.com>2017-03-01 09:51:55 (GMT)
commitf5184745a502a38284ce54732913a4381a45daac (patch)
treed1272bbd771bf1a91ae5ecd4dcbc76f2a150fb89 /Doc
parent43f5df5bfaea5a07c913d12cb92f78f997feb371 (diff)
downloadcpython-f5184745a502a38284ce54732913a4381a45daac.zip
cpython-f5184745a502a38284ce54732913a4381a45daac.tar.gz
cpython-f5184745a502a38284ce54732913a4381a45daac.tar.bz2
Tweak subprocess.STARTUPINFO documentation (#347)
* Document STARTUPINFO constructor * Move versionchanged directive to above of attributes
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/subprocess.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index d0b2f9b..afa1e86 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -746,12 +746,16 @@ Windows Popen Helpers
The :class:`STARTUPINFO` class and following constants are only available
on Windows.
-.. class:: STARTUPINFO()
+.. class:: STARTUPINFO(*, dwFlags=0, hStdInput=None, hStdOutput=None, \
+ hStdError=None, wShowWindow=0)
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. The following attributes can be set
- by passing them as keyword-only arguments.
+ structure is used for :class:`Popen` creation. The following attributes can
+ be set by passing them as keyword-only arguments.
+
+ .. versionchanged:: 3.7
+ Keyword-only argument support was added.
.. attribute:: dwFlags
@@ -793,8 +797,6 @@ 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
^^^^^^^^^