greg wrote:

You can't read and write with the same stdio file object
at the same time. Odd things tend to happen if you try.

I believe the C standard specifies that the behavior of mixed reads and writes is undefined without intervening seek and/or flush, even if the seek is ignored (as it is on some Unix systems). With two threads, the timing is undetermined.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to