Design idea for Ping Application

Andrew Dalke adalke at
Tue Aug 19 04:39:23 CEST 2003

> Actually I already have my threads running and can use them to ping using
> direct call under the os module. But my problem was being able to have
> running continuously.
> I guess the main question is are there any file functions, like readlines,
> that will only look at the available data and not look for EOF?

Ahh, in that case your problem is you are using 'readlines', which reads
all the lines at once, and waits for the end.  Since you really only want
a line, and it's okay to wait in your thread for that line, use 'readline()'
instead of 'readlines()'.

                    dalke at

More information about the Python-list mailing list