[New-bugs-announce] [issue47222] subprocess.Popen() should allow capturing output and sending it to stdout and stderr

Philip Prindeville report at bugs.python.org
Mon Apr 4 18:52:49 EDT 2022


New submission from Philip Prindeville <philipp at redfish-solutions.com>:

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.

----------
components: Library (Lib)
messages: 416703
nosy: pprindeville
priority: normal
severity: normal
status: open
title: subprocess.Popen() should allow capturing output and sending it to stdout and stderr
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47222>
_______________________________________


More information about the New-bugs-announce mailing list