Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Modules/_io/bytesio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ bytesio_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
}

/*[clinic input]
@vectorcall
@critical_section
_io.BytesIO.__init__
initial_bytes as initvalue: object(c_default="NULL") = b''
Expand All @@ -1124,7 +1125,7 @@ Buffered I/O implementation using an in-memory bytes buffer.

static int
_io_BytesIO___init___impl(bytesio *self, PyObject *initvalue)
/*[clinic end generated code: output=65c0c51e24c5b621 input=3da5a74ee4c4f1ac]*/
/*[clinic end generated code: output=65c0c51e24c5b621 input=a6dc38082204df28]*/
{
if (FT_ATOMIC_LOAD_SSIZE_RELAXED(self->exports) > 0) {
PyErr_SetString(PyExc_BufferError,
Expand Down Expand Up @@ -1253,6 +1254,7 @@ static PyType_Slot bytesio_slots[] = {
{Py_tp_getset, bytesio_getsetlist},
{Py_tp_init, _io_BytesIO___init__},
{Py_tp_new, bytesio_new},
{Py_tp_vectorcall, _io_BytesIO_vectorcall},
{0, NULL},
};

Expand Down
73 changes: 67 additions & 6 deletions Modules/_io/clinic/bytesio.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading