Capturing stderr and stdout of a subprocess as a single stream

Gabriel Genellina gagsl-py at
Sun Jan 7 21:44:36 CET 2007

On 7 ene, 17:37, "Fuzzyman" <fuzzy... at> wrote:

> Two threads and a queue sounds horrible.

But unfortunately it's the only way if you don't control how the child
process behaves.
(It's not soooo ugly afterwards... certainly would be worse if you had
to syncronize both reading threads and the display thread using
semaphores by hand.)

Gabriel Genellina

More information about the Python-list mailing list