[New-bugs-announce] [issue15532] "for line in file" is *still* broken in Python 2.7
Andy Lutomirski
report at bugs.python.org
Wed Aug 1 23:56:38 CEST 2012
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 <report at bugs.python.org>
<http://bugs.python.org/issue15532>
_______________________________________
More information about the New-bugs-announce
mailing list