Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-87597: Document TimeoutExpired.stdout & .stderr types.
This documents the behavior that has always been the case since timeout
support was introduced in Python 3.3.
  • Loading branch information
gpshead committed Sep 30, 2022
commit 83a8a06331f604c964531d063e0be57f7a459d82
9 changes: 7 additions & 2 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ underlying :class:`Popen` interface can be used directly.
.. attribute:: output

Output of the child process if it was captured by :func:`run` or
:func:`check_output`. Otherwise, ``None``.
:func:`check_output`. Otherwise, ``None``. This is always
:class:`bytes` when any output was captured regardless of the
``text=True`` setting. It may be ``None`` when there was no output
captured.

.. attribute:: stdout

Expand All @@ -202,7 +205,9 @@ underlying :class:`Popen` interface can be used directly.
.. attribute:: stderr

Stderr output of the child process if it was captured by :func:`run`.
Otherwise, ``None``.
Otherwise, ``None``. This is always :class:`bytes` when stderr output
was captured regardless of the ``text=True`` setting. It may be
``None`` when there was no stderr output captured.

.. versionadded:: 3.3

Expand Down