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 vstinner
Recipients gvanrossum, vstinner, yselivanov
Date 2014-03-27.23:47:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwY5XHwfT+N1ZkoRcvN9NYbcvcKkhAn1fLpLf1EGhvvV+g@mail.gmail.com>
In-reply-to <1395962710.72.0.798845928577.issue21080@psf.upfronthosting.co.za>
Content
> Oh, I see. Given that it is possible to do using event loop methods, why don't you write up a complete implementation and then propose to add that to the asyncio.subprocess module?

I don't know that a whole new implementation is needed. I guess that a
simpler change can be done on SubprocessStreamProtocol to ask to not
consume the pipe (don't attach a StreamReader to the pipe transport).

I still want to use streams at the end, so use the "high-level API". Example:
---
ls = yield from create_subprocess_exec("ls", stdout=subprocess.PIPE)
grep = yield from create_subprocess_exec("grep", "-v", "-F", ".old",
stdin=ls.stdin, stdout=subprocess.PIPE)
stdout, _ = yield from grep.communicate()
---
History
Date User Action Args
2014-03-27 23:47:54vstinnersetrecipients: + vstinner, gvanrossum, yselivanov
2014-03-27 23:47:54vstinnerlinkissue21080 messages
2014-03-27 23:47:54vstinnercreate