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 martin.panter
Recipients chkumar246, docs@python, gigaplastik, martin.panter, pitrou
Date 2014-12-20.12:30:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419078629.55.0.485596151979.issue22671@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-12-20 12:30:29martin.pantersetrecipients: + martin.panter, pitrou, docs@python, gigaplastik, chkumar246
2014-12-20 12:30:29martin.pantersetmessageid: <1419078629.55.0.485596151979.issue22671@psf.upfronthosting.co.za>
2014-12-20 12:30:29martin.panterlinkissue22671 messages
2014-12-20 12:30:29martin.pantercreate