blocking file.readlines() needed

Uwe Mayer merkosh at hadiko.de
Fri Aug 13 18:36:11 CEST 2004


Hi,

I am looking for a way to make the call to a file objects readline() method
blocking when there is no more data, until data is appended to the file,
similar to the way 

$ tail -F <system log file>

works.

However, file.readlines() aborts and returns an empty list. 

Any ideas?

Thanks
Ciao
Uwe
        



More information about the Python-list mailing list