Message215006
> 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()
--- |
|
Date |
User |
Action |
Args |
2014-03-27 23:47:54 | vstinner | set | recipients:
+ vstinner, gvanrossum, yselivanov |
2014-03-27 23:47:54 | vstinner | link | issue21080 messages |
2014-03-27 23:47:54 | vstinner | create | |
|