On Mon, May 30, 2011 at 6:27 PM, Andrew Bennetts
<email address hidden> wrote:
>> > Because subprocess doesn't expose a way to read incrementally from both
> […]
>> Sure it does - select. The file objects can be selected on and
>> incrementally iterated. Or asyncore.
>
> Yes, select is how the subprocess module implements communicate() — on
> posix. But that doesn't work on Windows. asyncore also doesn't help
> for the same reason, it relies on APIs that only work on sockets on
> Windows.
On Mon, May 30, 2011 at 6:27 PM, Andrew Bennetts
<email address hidden> wrote:
>> > Because subprocess doesn't expose a way to read incrementally from both
> […]
>> Sure it does - select. The file objects can be selected on and
>> incrementally iterated. Or asyncore.
>
> Yes, select is how the subprocess module implements communicate() — on
> posix. But that doesn't work on Windows. asyncore also doesn't help
> for the same reason, it relies on APIs that only work on sockets on
> Windows.
Ah. If only such a thing existed.