Question about StringIO

Frank Millman frank at chagford.com
Tue Oct 11 05:20:24 EDT 2005


Diez B. Roggisch wrote:
> > Thanks for this pointer. I have read it, but I don't think it applies
> > to my situation, as it talks about 'reading' from the child's stdout
> > while the child is 'writing' to stderr.
>
> But that is exactly the point: the psql blocks because you don't read
> away the buffered data. Start a thread, read that stdout/stderr and see
> if things go smoothly.
>
> Diez

Of course (kicks himself), it is obvious now that you have explained
it. I tried your suggestion and it works perfectly.

Many thanks

Frank




More information about the Python-list mailing list