This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Andy.Lutomirski
Recipients Andy.Lutomirski
Date 2012-08-01.21:56:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343858198.39.0.554130035278.issue15532@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-08-01 21:56:38Andy.Lutomirskisetrecipients: + Andy.Lutomirski
2012-08-01 21:56:38Andy.Lutomirskisetmessageid: <1343858198.39.0.554130035278.issue15532@psf.upfronthosting.co.za>
2012-08-01 21:56:37Andy.Lutomirskilinkissue15532 messages
2012-08-01 21:56:36Andy.Lutomirskicreate