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 gregory.p.smith
Recipients gregory.p.smith, r.david.murray
Date 2013-03-17.05:37:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363498635.77.0.708235531157.issue17443@psf.upfronthosting.co.za>
In-reply-to
Content
The error does not happen when running the same code under 2.7, despite the same default bufsize=0 subprocess behavior.  This is likely due to differences in the Python 2.x old style io library when os.fdopen(fd, 'rb', bufsize) is used vs 3.x when io.open(fd, 'rb', bufsize) is used for  Popen.stdout.

One workaround is to add a non-zero bufsize to the subprocess.Popen call in imaplib.IMAP4_stream.

I'm not sure if subprocess should be updated or if subprocess's docs on what it means for a pipe to be unbuffered (read(n) is a single syscall rather than a loop until n bytes or EOF) should be updated.
History
Date User Action Args
2013-03-17 05:37:15gregory.p.smithsetrecipients: + gregory.p.smith, r.david.murray
2013-03-17 05:37:15gregory.p.smithsetmessageid: <1363498635.77.0.708235531157.issue17443@psf.upfronthosting.co.za>
2013-03-17 05:37:15gregory.p.smithlinkissue17443 messages
2013-03-17 05:37:15gregory.p.smithcreate