Message187279
Note also that allowing `stdin=<any filelike>` in a clean fashion would require rather more surgery than you suggest, because a filelike can produce an infinite stream of data, and people would expect that to work when the subprocess only reads a finite prefix; making it *actually* work would involve teaching communicate() to take a filelike and copy blocks into the pipe. I have no *objection* to that change but I think it is too much mission creep for this proposal.
With the present design, where stdin= has to be something for which fileno() is defined, and input= has to be a string (hence of finite length), no one is going to expect something to work that won't. |
|
Date |
User |
Action |
Args |
2013-04-18 18:39:34 | zwol | set | recipients:
+ zwol, BreamoreBoy, serhiy.storchaka |
2013-04-18 18:39:34 | zwol | set | messageid: <1366310374.0.0.393633376502.issue16624@psf.upfronthosting.co.za> |
2013-04-18 18:39:33 | zwol | link | issue16624 messages |
2013-04-18 18:39:33 | zwol | create | |
|