Message135162
2011/5/4 John O'Connor <report@bugs.python.org>:
>
> John O'Connor <tehjcon@gmail.com> added the comment:
>
> I am new to the community but hoping to start contributing or at least following issues and learning :)
>
> I'm looking at bufferediobase_readinto(). What I haven't yet figured out is why .readinto() is (currently) implemented at this layer of the hierarchy. You have to have a raw read buffer available to read from and I'm not sure how one would acquire that from here (without calling .read() or something that has been overridden and knows about the raw buffer).
Why is that? You can, as the BufferedIOBase implementation does, just
call read() and stick it into the buffer.
>
> I feel like bufferediobase_readinto() should return unsupported. Also readinto(), in theory, is lower level than read. if read isn't implemented at this layer why is readinto()?
To provide a simple implementation for unsophisticated subclasses. |
|
Date |
User |
Action |
Args |
2011-05-04 23:09:57 | benjamin.peterson | set | recipients:
+ benjamin.peterson, pitrou, stutzbach, daniel.urban, jcon |
2011-05-04 23:09:55 | benjamin.peterson | link | issue9971 messages |
2011-05-04 23:09:55 | benjamin.peterson | create | |
|