Steven D'Aprano <st...@pearwood.info>:

> When I pipe one to the other, I expect each line to be printed as they
> arrive, but instead they all queue up and happen at once:

Try flushing after each print.

When sys.stdout is a pipe, flushing happens only when the internal
buffer fills up.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to