On Thu, Apr 4, 2019 at 12:48 AM Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:
>
> The check_output() function of the subprocess module raises an
> exception if the process returns a non-zero exit status. This is
> inconvenient for commands such as grep that use the return
> status to indicate something other than success or failure.
>
> The check_call() function has a companion call(), but here is
> currently no non-checking companion for check_call(). How
> about adding one with a signature such as
>
> output(args) --> (status, output)

Isn't this already available as: run(args, stdout=PIPE)? Is the object
to the extra typing, or...?

-n

-- 
Nathaniel J. Smith -- https://vorpus.org
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to