Should I use threads here?
Kragen Sitaker
kragen at pobox.com
Wed Nov 28 17:15:04 EST 2001
"Steve Holden" <sholden at holdenweb.com> writes:
> readlines() doesn't terminate until it knows (by seeing and end of file on
> its input stream) that it has read all the input. If you built a loop using
> readline() you might find you got better results.
This is assuming that the program actually outputs stuff as it goes;
many programs buffer output in big blocks when they're talking down a
pipe instead of outputting line by line.
More information about the Python-list
mailing list