<div dir="ltr">Maybe subprocess could take a page out of pathlib and use | (__or__) for piping.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 January 2015 at 12:47, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 29 January 2015 at 08:13, Barry Warsaw <<a href="mailto:barry@python.org">barry@python.org</a>> wrote:<br>
> On Jan 28, 2015, at 09:43 AM, Thomas Kluyver wrote:<br>
><br>
>>Ugh, yes. I would follow that for consistency, though I'd love to come up<br>
>>with a way to clean that up too. The fact that 'decode the output' is<br>
>>spelled 'universal_newlines' is one of my least favourite things about<br>
>>subprocess.<br>
><br>
> Not me; it's one of those sekrits that ensures Python 3 porters job<br>
> security. ;)<br>
<br>
</div></div>I still suspect we should be offering a simpler way to decouple the<br>
creation of the pipes from the subprocess call, but I have no idea<br>
what that API should look like, and as ugly and unintuitive as it is,<br>
the existing universal_newlines trick does address all of my *actual*<br>
use cases :P<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
Nick.<br>
<br>
--<br>
Nick Coghlan   |   <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>   |   Brisbane, Australia<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</div></div></blockquote></div><br></div>