mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #24001: Argument Clinic converters now use accept={type}
instead of types={'type'} to specify the types the converter accepts.
This commit is contained in:
parent
cb98556373
commit
dbfdc380df
16 changed files with 163 additions and 122 deletions
|
@ -541,7 +541,7 @@ _io_BytesIO_readlines_impl(bytesio *self, PyObject *arg)
|
|||
|
||||
/*[clinic input]
|
||||
_io.BytesIO.readinto
|
||||
buffer: Py_buffer(types={'rwbuffer'})
|
||||
buffer: Py_buffer(accept={rwbuffer})
|
||||
/
|
||||
|
||||
Read up to len(buffer) bytes into buffer.
|
||||
|
@ -552,7 +552,7 @@ is set not to block as has no data to read.
|
|||
|
||||
static PyObject *
|
||||
_io_BytesIO_readinto_impl(bytesio *self, Py_buffer *buffer)
|
||||
/*[clinic end generated code: output=a5d407217dcf0639 input=d289da851c7c4159]*/
|
||||
/*[clinic end generated code: output=a5d407217dcf0639 input=71581f32635c3a31]*/
|
||||
{
|
||||
Py_ssize_t len, n;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue