Subprocess freezes when piping from stdout.

Fredrik Lundh fredrik at
Mon Sep 8 07:07:02 CEST 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.


More information about the Python-list mailing list