Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update Objects/bytearrayobject.c
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
cmaloney and vstinner authored Dec 3, 2025
commit c5e9da6ae9c8ad04cb32fa0c64949c26354dedbb
2 changes: 1 addition & 1 deletion Objects/bytearrayobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ bytearray_iconcat_lock_held(PyObject *op, PyObject *other)

// optimization: Avoid copying the bytes coming in when possible.
if (self->ob_alloc == 0 && _PyObject_IsUniquelyReferenced(other)) {
assert(_Py_IsImmortal(self->ob_bytes_object));
assert(self->ob_bytes_object == Py_GetConstantBorrow(Py_CONSTANT_EMPTY_BYTES));
if (!_canresize(self)) {
return NULL;
}
Expand Down
Loading