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
Prev Previous commit
slight rewording clarification.
That is is None even when people ask to capture output but the process
generated no output is a long standing API wart.
  • Loading branch information
gpshead committed Sep 30, 2022
commit 35dcb7d893eb4d980ba8744c51ed1126618fdcb3
8 changes: 4 additions & 4 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ underlying :class:`Popen` interface can be used directly.
Output of the child process if it was captured by :func:`run` or
: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.
``text=True`` setting. It may remain ``None`` instead of ``b''``
when no output was observed.

.. attribute:: stdout

Expand All @@ -206,8 +206,8 @@ underlying :class:`Popen` interface can be used directly.

Stderr output of the child process if it was captured by :func:`run`.
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.
was captured regardless of the ``text=True`` setting. It may remain
``None`` instead of ``b''`` when no stderr output was observed.

.. versionadded:: 3.3

Expand Down