Thread blocked by file.read/readline
Neil Hodge
null at null.com
Sat May 3 11:57:25 EDT 2003
Alex, Donn:
On Sat, 03 May 2003 15:09:46 +0000, Donn Cave wrote:
> Quoth "Neil Hodge" <null at null.com>:
> ...
>
> To start with, replace readlines() with readline(), like
> while 1:
> f = file.readline()
> if not f:
> break
>
Thanks for the python hints; I will try those first.
> If that doesn't do it, then you will have to modify the program on the
> other end to get it to flush its output every line.
>
I have a gut feeling that this is what I am missing. But if I don't have
to mess with it, cool.
Thanks again.
Neil
More information about the Python-list
mailing list