Re: stdout in subprocess

2010-10-27 Thread D'Arcy J.M. Cain
On Wed, 27 Oct 2010 16:24:29 -0400 Not To Miss wrote: > I have a question on subprocess.Popen, as shown comparably below. When I ran > 1.py, it prints "0". I don't understand how the file is empty. Isn't it > flushed when the file object "out" is closed? On the other hand, running > 2.py prints co

stdout in subprocess

2010-10-27 Thread Not To Miss
Hi all, I have a question on subprocess.Popen, as shown comparably below. When I ran 1.py, it prints "0". I don't understand how the file is empty. Isn't it flushed when the file object "out" is closed? On the other hand, running 2.py prints correct value. ### 1.py ## from subprocess