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 gvanrossum
Recipients gvanrossum, oconnor663, vstinner, yselivanov
Date 2014-08-26.22:33:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409092407.95.0.616986513841.issue22279@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, I just checked the docs.  io.BufferedIOBase.read(size) is more complicated than I (or Jack) thought -- it can return a short read if the underlying raw stream is "interactive". The subclass io.BufferedReader uses the definition preferred by Jack (though the sentence is malformed and it's not entirely clear to what the "if the read call would block in non-blocking mode" applies -- but my best guess is that it only applies if size is not given or negative).

The backward compatibility issue is difficult though.  It looks like examples/echo_server_tulip.py needs to be updated, which suggests a lot of 3rd party code might have to...
History
Date User Action Args
2014-08-26 22:33:27gvanrossumsetrecipients: + gvanrossum, vstinner, yselivanov, oconnor663
2014-08-26 22:33:27gvanrossumsetmessageid: <1409092407.95.0.616986513841.issue22279@psf.upfronthosting.co.za>
2014-08-26 22:33:27gvanrossumlinkissue22279 messages
2014-08-26 22:33:27gvanrossumcreate