Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f518474

Browse files
authoredMar 1, 2017
Tweak subprocess.STARTUPINFO documentation (python#347)
* Document STARTUPINFO constructor * Move versionchanged directive to above of attributes
1 parent 43f5df5 commit f518474

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎Doc/library/subprocess.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -746,12 +746,16 @@ Windows Popen Helpers
746746
The :class:`STARTUPINFO` class and following constants are only available
747747
on Windows.
748748

749-
.. class:: STARTUPINFO()
749+
.. class:: STARTUPINFO(*, dwFlags=0, hStdInput=None, hStdOutput=None, \
750+
hStdError=None, wShowWindow=0)
750751

751752
Partial support of the Windows
752753
`STARTUPINFO <https://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx>`__
753-
structure is used for :class:`Popen` creation. The following attributes can be set
754-
by passing them as keyword-only arguments.
754+
structure is used for :class:`Popen` creation. The following attributes can
755+
be set by passing them as keyword-only arguments.
756+
757+
.. versionchanged:: 3.7
758+
Keyword-only argument support was added.
755759

756760
.. attribute:: dwFlags
757761

@@ -793,8 +797,6 @@ on Windows.
793797
:data:`SW_HIDE` is provided for this attribute. It is used when
794798
:class:`Popen` is called with ``shell=True``.
795799

796-
.. versionchanged:: 3.7
797-
*Keyword-only argument* support was added.
798800

799801
Constants
800802
^^^^^^^^^

0 commit comments

Comments
 (0)
Failed to load comments.