Peter Otten wrote:
Ian Simcock wrote:
Greetings all.
I'm using Python 2.7 under Windows and am trying to run a command line
program and process the programs output as it is running. A number of
web searches have indicated that the following code would work.
import subproce
Rob Wolfe wrote:
Ian Simcock writes:
When file object is used in a for loop it works like an iterator
and then it uses a hidden read-ahead buffer.
It might cause this kind of blocking.
You can read more details here (description of method ``next``):
http://docs.python.org/lib/bltin-file
Chris Angelico wrote:
On Fri, Aug 23, 2013 at 1:26 AM, Ian Simcock
wrote:
Chris Angelico wrote:
A lot of programs, when their output is not going to the console, will
buffer output. It's more efficient for many purposes. With Unix
utilities, there's often a parameter like
or a while and then suddenly get all the output in
one rapid go.
Can you think of anything else I can look at?
Ian Simcock.
--
http://mail.python.org/mailman/listinfo/python-list
gram without it blocking?
Thanks,
Ian Simcock.
--
http://mail.python.org/mailman/listinfo/python-list