Guido van Rossum added the comment:

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...

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22279>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to