Subprocess freezes when piping from stdout.
Fredrik Lundh
fredrik at pythonware.com
Mon Sep 8 01:07:02 EDT 2008
James McGill wrote:
> Is anyone aware of why this might be occurring, or of any ways around
> this? Does the PIPE implementation in Win32 have a maximum buffer
> size?
pipes always have a limited buffer size, on all platforms. you're
supposed to read data from them as it arrives (e.g. by explicitly
reading from the "stdout" attribute, or by calling "communicate").
if you cannot do that, bind the channel to a file, not a pipe.
</F>
More information about the Python-list
mailing list