This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: subprocess.Popen() should allow capturing output and sending it to stdout and stderr
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gregory.p.smith, pprindeville
Priority: normal Keywords: patch

Created on 2022-04-04 22:52 by pprindeville, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 32344 open pprindeville, 2022-04-05 21:08
Messages (1)
msg416703 - (view) Author: Philip Prindeville (pprindeville) * Date: 2022-04-04 22:52
I'd like to see handlers exposes for the stdout and stderr pipe-reading threads so that I could customize what's done with the data as it's read.

I might, for instance, want to:

(1) accumulate it into a buffer;
(2) copy it onto sys.stdout or sys.stderr, respectively;
(3) send it to a logging object;

or some combination of the above, possibly all of them.
Date User Action Args
2022-04-11 14:59:58adminsetgithub: 91378
2022-04-05 21:08:52pprindevillesetkeywords: + patch
stage: patch review
pull_requests: + pull_request30398
2022-04-05 01:49:10ned.deilysetnosy: + gregory.p.smith
2022-04-04 22:52:49pprindevillecreate