On Jul 2, 2:03 pm, Bjoern Schliessmann <usenet- [EMAIL PROTECTED]> 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. -- http://mail.python.org/mailman/listinfo/python-list