Capturing stderr and stdout of a subprocess as a single stream

Gabriel Genellina gagsl-py at yahoo.com.ar
Sun Jan 7 15:44:36 EST 2007


On 7 ene, 17:37, "Fuzzyman" <fuzzy... at gmail.com> 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