mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
First step of the C API rename:
renamed Include/bytesobject.h to Include/bytearrayobject.h renamed Include/stringobject.h to Include/bytesobject.h added Include/stringobject.h with aliases
This commit is contained in:
parent
b4701e638c
commit
3497f94476
11 changed files with 513 additions and 476 deletions
|
|
@ -961,8 +961,8 @@ string_concat(register PyStringObject *a, register PyObject *bb)
|
|||
if (PyUnicode_Check(bb))
|
||||
return PyUnicode_Concat((PyObject *)a, bb);
|
||||
#endif
|
||||
if (PyBytes_Check(bb))
|
||||
return PyBytes_Concat((PyObject *)a, bb);
|
||||
if (PyByteArray_Check(bb))
|
||||
return PyByteArray_Concat((PyObject *)a, bb);
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"cannot concatenate 'str' and '%.200s' objects",
|
||||
Py_TYPE(bb)->tp_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue