mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #20699: Merge io bytes-like fixes from 3.5
This commit is contained in:
commit
c249221dfd
10 changed files with 128 additions and 67 deletions
|
@ -546,7 +546,7 @@ _io.BytesIO.readinto
|
|||
buffer: Py_buffer(accept={rwbuffer})
|
||||
/
|
||||
|
||||
Read up to len(buffer) bytes into buffer.
|
||||
Read bytes into buffer.
|
||||
|
||||
Returns number of bytes read (0 for EOF), or None if the object
|
||||
is set not to block and has no data to read.
|
||||
|
@ -554,7 +554,7 @@ is set not to block and has no data to read.
|
|||
|
||||
static PyObject *
|
||||
_io_BytesIO_readinto_impl(bytesio *self, Py_buffer *buffer)
|
||||
/*[clinic end generated code: output=a5d407217dcf0639 input=b52a8782706f0037]*/
|
||||
/*[clinic end generated code: output=a5d407217dcf0639 input=1424d0fdce857919]*/
|
||||
{
|
||||
Py_ssize_t len, n;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue