Thanks to visit codestin.com
Credit goes to github.com

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
Call take_bytes directly
  • Loading branch information
cmaloney committed Dec 3, 2025
commit 614e743ae74a4e0f56c2e1172e02aaeaa401e2c6
4 changes: 2 additions & 2 deletions Objects/bytearrayobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ bytearray_iconcat_lock_held(PyObject *op, PyObject *other)
* Just returning other doesn't work as __init__ calls this and can't
* change self. */
if (PyByteArray_CheckExact(other)) {
PyObject *taken = PyObject_CallMethodNoArgs(other,
&_Py_ID(take_bytes));
PyObject *taken;
taken = bytearray_take_bytes_impl((PyByteArrayObject*)other, Py_None);
if (taken == NULL) {
return NULL;
}
Expand Down
Loading