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.

Author takluyver
Recipients barry, ethan.furman, gregory.p.smith, r.david.murray, takluyver
Date 2015-01-28.23:35:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422488106.43.0.102181214509.issue23342@psf.upfronthosting.co.za>
In-reply-to
Content
Updated patch following Gregory's suggestions:

- The check_returncode parameter is now called check. The method on CompletedProcess is still check_returncode, though.
- Clarified the docs about args
- CalledProcessError and TimeoutExceeded gain a stdout property as an alias of output

Ethan: to combine stdout and stderr in check_output, you need to pass stderr=subprocess.STDOUT - it doesn't assume you want that.

I did consider having a simplified interface so you could pass e.g. capture='combine', or capture='stdout', but I don't think the brevity is worth the loss of flexibility.
History
Date User Action Args
2015-01-28 23:35:06takluyversetrecipients: + takluyver, barry, gregory.p.smith, r.david.murray, ethan.furman
2015-01-28 23:35:06takluyversetmessageid: <1422488106.43.0.102181214509.issue23342@psf.upfronthosting.co.za>
2015-01-28 23:35:06takluyverlinkissue23342 messages
2015-01-28 23:35:06takluyvercreate