Martin Panter added the comment:

The documentation was technically correct but too scanty. RawIOBase.read(-1) 
does defer to readall(), but with a proper size passed, it defers to readinto() 
instead. Here is a patch which hopefully clarifies this, and also explains 
which methods have a usable default implementation. Includes some tests for 
RawIOBase and BufferedIOBase which didn’t seem to be there already.

----------
keywords: +patch
nosy: +vadmium
Added file: http://bugs.python.org/file37515/read-defaults.patch

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

Reply via email to