Jp Calderone wrote:
> Or, doing the same thing, but with less code:
Hmm ... What have I been smoking?
--
http://mail.python.org/mailman/listinfo/python-list
On 23 May 2005 13:22:04 -0700, Simon Percivall <[EMAIL PROTECTED]> wrote:
>Okay, so the reason what you're trying to do doesn't work is that the
>readahead buffer used by the file iterator is 8192 bytes, which clearly
>might be too much. It also might be because the output from the
>application you
Okay, so the reason what you're trying to do doesn't work is that the
readahead buffer used by the file iterator is 8192 bytes, which clearly
might be too much. It also might be because the output from the
application you're running is buffered, so you might have to do
something about that as well.
I am using the subprocess module to invoke a command-line utility and
process the output.
However, I would like to process the output line-by-line as it is
generated rather than
running the subprocess to completion and THEN processing the results.
So, for instance,
I'd like to write code like this