[Python-ideas] Add output() helper function to subprocess module

Chris Angelico rosuav at gmail.com
Thu Apr 4 05:04:09 EDT 2019


On Thu, Apr 4, 2019 at 8:02 PM Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> Chris Angelico wrote:
> > +1 on adding a nice simple function, although I'm not 100% sold on the
> > name "output".
>
> The idea is that output/check_output would go together like
> call/check_call.
>

Yeah, so I think that on balance it's probably the best choice, but as
its own thing, it's a bit odd.

subprocess.output("...")

I'm, let's say, +1 on the idea in general, and +0.9 on calling it "output".

ChrisA


More information about the Python-ideas mailing list