Whn to read a pipe

bowman bowman at montana.com
Sat Feb 10 23:05:02 EST 2001


EdK <e_d_k at my-deja.com> wrote in message news:964f5i$oqr$1 at nnrp1.deja.com...
> I'm having a problem. I use popen3 to run I program I want to controle
from a
> Python Program. My problem is that I want to read data from the progams
stdio
> pipe if there is data to read. If I try to read date when there is no data
> the progam hangs until there is data present, I do not know how to tell if
> there is data to read, and only read it if it is there. Can anyone help me
> with this?

Depending on your OS, select may work for you.






More information about the Python-list mailing list