mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Backport fast alternate io.BytesIO implementation.
Merged r62778, r62779, r62802, r62806, r62807, r62808, r62809, r62844, r62846, r62952, r62956.
This commit is contained in:
parent
81673b7b63
commit
1aed624f7c
10 changed files with 1284 additions and 64 deletions
|
@ -315,8 +315,8 @@ bytes_iconcat(PyBytesObject *self, PyObject *other)
|
|||
Py_buffer vo;
|
||||
|
||||
if (_getbuffer(other, &vo) < 0) {
|
||||
PyErr_Format(PyExc_TypeError, "can't concat bytes to %.100s",
|
||||
Py_TYPE(self)->tp_name);
|
||||
PyErr_Format(PyExc_TypeError, "can't concat %.100s to %.100s",
|
||||
Py_TYPE(other)->tp_name, Py_TYPE(self)->tp_name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue