SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-140557: Force alignment of empty `bytearray` and `array.array` buffers (GH-140559)

This ensures the buffers used by the empty `bytearray` and `array.array`
are aligned the same as a pointer returned by the allocator.  This is a
more convenient default for interop with other languages that have
stricter requirements of type-safe buffers (e.g. Rust's `&[T]` type)
even when empty.
J
Jake Lishman committed
19de10d3d8605a290492e4fb3871e12638b0f7bb
Parent: 1f55caf
Committed by GitHub <noreply@github.com> on 1/26/2026, 3:45:17 PM