popen2.Popen3 and slightly large output
donn at drizzle.com
Tue Aug 13 08:26:46 CEST 2002
Quoth Mike Wakerly <mikew at wakerly.com>:
| However, I have encountered a behaviour in
| popen2.Popen3 that I cannot fully explain; rather I
| can only gruffly mumble things about 'buffers getting
| filled' and such...
No doubt that's it.
| What can cause this? My suspicion is that somehow, the
| output is buffered, and somehow, inspecting fromchild
| flushes said buffer, and the process completes. I have
| yet to inspect the actual Popen3 implementation
Tsk. It's in popen2.py in your library directory. Take a
look. There really isn't much to it, and you are almost
guaranteed to learn something useful.
Donn Cave, donn at drizzle.com
More information about the Python-list