Maybe subprocess could take a page out of pathlib and use | (__or__) for piping.

On 29 January 2015 at 12:47, Nick Coghlan <> wrote:
On 29 January 2015 at 08:13, Barry Warsaw <> wrote:
> On Jan 28, 2015, at 09:43 AM, Thomas Kluyver wrote:
>>Ugh, yes. I would follow that for consistency, though I'd love to come up
>>with a way to clean that up too. The fact that 'decode the output' is
>>spelled 'universal_newlines' is one of my least favourite things about
> Not me; it's one of those sekrits that ensures Python 3 porters job
> security. ;)

I still suspect we should be offering a simpler way to decouple the
creation of the pipes from the subprocess call, but I have no idea
what that API should look like, and as ugly and unintuitive as it is,
the existing universal_newlines trick does address all of my *actual*
use cases :P


Nick Coghlan   |   |   Brisbane, Australia
Python-ideas mailing list
Code of Conduct: