Skip to content

Latest commit

 

History

History
9 lines (9 loc) · 613 Bytes

2026-08-21-14-37-50.gh-issue-127716.KrPth8.rst

File metadata and controls

9 lines (9 loc) · 613 Bytes

On the free-threaded build, :class:`memoryview` operations are now thread safe: an operation that reads the buffer holds the managed buffer for its duration, so a concurrent :meth:`~memoryview.release` can no longer free the buffer under it; slicing a memoryview from several threads no longer loses buffer registrations and raises ValueError: operation forbidden on released memoryview object; and :func:`hash` of a memoryview is no longer a data race. As a result :meth:`~memoryview.release` may now return while an operation started by another thread is still running, see :ref:`thread-safety-memoryview`.