Whn to read a pipe

EdK e_d_k at my-deja.com
Sat Feb 10 17:26:01 EST 2001


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?

   -EdK


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list