Bug? - win32pipe.popen2 is moody under W98
ejohnson at netcom.com
Tue Nov 16 04:51:27 CET 1999
I'm working on a multi-threaded make engine under Python. In so
doing, I'm desperately trying to get a popen like facility running
under Win98 in Python. I've got Mark Hammond's win32 extensions
(build 127 to be exact), and I'm still striking out.
The following sample code spins off a couple of threads. Each thread
makes a popen2 call and displays the results. Ideally, each popen2
call should be capable of being executed in tandem with the rest.
for n in range(4):
This and its variant that uses os.popen directly works just fine under
NT 4.0. But under W98, it gets all hung up on itself quite quickly.
Repeated investigation and experimentation shows that the hang point
appears to be on simulataneous calls to .readline() while another
thread is invoking popen.
Can anyone say either way whether this can be expected to work under
More information about the Python-list