files in non-blocking mode?
Uwe Mayer
merkosh at hadiko.de
Sun Nov 28 08:34:46 EST 2004
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
More information about the Python-list
mailing list