subprocess -- broken pipe error

7stud bbxx789_05ss at yahoo.com
Mon Jul 2 16:07:58 EDT 2007


On Jul 2, 2:03 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n... at spamgourmet.com> wrote:
> 7stud wrote:
> > Why doesn't the following program write to the file?
> > [...]
> > It just hangs, and then when I hit Ctrl+C and look in the file,
> > the data isn't in there.
>
> Also, the pipe may be unbuffered by
> default; file access isn't.
>

f.close() flushes the buffer to a file.





More information about the Python-list mailing list