Message232970
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. |
|
Date |
User |
Action |
Args |
2014-12-20 12:30:29 | martin.panter | set | recipients:
+ martin.panter, pitrou, docs@python, gigaplastik, chkumar246 |
2014-12-20 12:30:29 | martin.panter | set | messageid: <1419078629.55.0.485596151979.issue22671@psf.upfronthosting.co.za> |
2014-12-20 12:30:29 | martin.panter | link | issue22671 messages |
2014-12-20 12:30:29 | martin.panter | create | |
|