U
Uwe Mayer
Hi,
I want two python programs to communicate over stdIO channels. The one
executes the other via the popen3 function:
amc = Popen3("./amc/amc.py", True, 0)
line = stdin.readline()
amc.tochild.write(line)
amc.tochild.flush()
print amc.fromchild.readlines()
The problem is that although amc.tochild gets flushed the data never reaches
the client until the .tochild fd is closed. Is there any way to put IO
channels into non-blocking mode in python?
Thanks
Uwe
I want two python programs to communicate over stdIO channels. The one
executes the other via the popen3 function:
amc = Popen3("./amc/amc.py", True, 0)
line = stdin.readline()
amc.tochild.write(line)
amc.tochild.flush()
print amc.fromchild.readlines()
The problem is that although amc.tochild gets flushed the data never reaches
the client until the .tochild fd is closed. Is there any way to put IO
channels into non-blocking mode in python?
Thanks
Uwe