From: Berker Peksag Date: Wed, 1 Mar 2017 09:51:55 +0000 (+0300) Subject: Tweak subprocess.STARTUPINFO documentation (#347) X-Git-Tag: v3.7.0a1~1248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5184745a502a38284ce54732913a4381a45daac;p=python Tweak subprocess.STARTUPINFO documentation (#347) * Document STARTUPINFO constructor * Move versionchanged directive to above of attributes --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index d0b2f9bff9..afa1e86c05 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 `__ - 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 ^^^^^^^^^