New submission from Andy Lutomirski:
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.
--
components: IO
messages: 167170
nosy: Andy.Lutomirski
priority: normal
severity: normal
status: open
title: for line in file is *still* broken in Python 2.7
type: behavior
versions: Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15532
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com