Message167170
This program:
import subprocess, sys
p = subprocess.Popen(['bash', '-c', 'while true; do echo x; sleep 1; done'], bufsize=0, stdout=subprocess.PIPE)
for line in p.stdout:
sys.stdout.buffer.write(line)
sys.stdout.flush()
sits around and does nothing on Python 2.7.3. It works (i.e. prints 'x' once per second) on Python 3.
This was http://bugs.python.org/issue3907 and is supposedly fixed, but it's not. |
|
Date |
User |
Action |
Args |
2012-08-01 21:56:38 | Andy.Lutomirski | set | recipients:
+ Andy.Lutomirski |
2012-08-01 21:56:38 | Andy.Lutomirski | set | messageid: <1343858198.39.0.554130035278.issue15532@psf.upfronthosting.co.za> |
2012-08-01 21:56:37 | Andy.Lutomirski | link | issue15532 messages |
2012-08-01 21:56:36 | Andy.Lutomirski | create | |
|