mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-111178: Generate correct signature for most self converters (#128447)
This commit is contained in:
parent
4d0a6595a0
commit
537296cdcd
74 changed files with 1627 additions and 1631 deletions
|
@ -588,7 +588,7 @@ _io_BytesIO_readinto_impl(bytesio *self, Py_buffer *buffer)
|
|||
|
||||
/*[clinic input]
|
||||
_io.BytesIO.truncate
|
||||
size: Py_ssize_t(accept={int, NoneType}, c_default="self->pos") = None
|
||||
size: Py_ssize_t(accept={int, NoneType}, c_default="((bytesio *)self)->pos") = None
|
||||
/
|
||||
|
||||
Truncate the file to at most size bytes.
|
||||
|
@ -599,7 +599,7 @@ The current file position is unchanged. Returns the new size.
|
|||
|
||||
static PyObject *
|
||||
_io_BytesIO_truncate_impl(bytesio *self, Py_ssize_t size)
|
||||
/*[clinic end generated code: output=9ad17650c15fa09b input=423759dd42d2f7c1]*/
|
||||
/*[clinic end generated code: output=9ad17650c15fa09b input=dae4295e11c1bbb4]*/
|
||||
{
|
||||
CHECK_CLOSED(self);
|
||||
CHECK_EXPORTS(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue