- Issue #10181: New memoryview implementation fixes multiple ownership · pythoncapi/cpython@9a2d99e · GitHub
Skip to content

Commit 9a2d99e

Browse files
committed
- Issue python#10181: New memoryview implementation fixes multiple ownership
and lifetime issues of dynamically allocated Py_buffer members (python#9990) as well as crashes (python#8305, python#7433). Many new features have been added (See whatsnew/3.3), and the documentation has been updated extensively. The ndarray test object from _testbuffer.c implements all aspects of PEP-3118, so further development towards the complete implementation of the PEP can proceed in a test-driven manner. Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review and many ideas. - Issue python#12834: Fix incorrect results of memoryview.tobytes() for non-contiguous arrays. - Issue python#5231: Introduce memoryview.cast() method that allows changing format and shape without making a copy of the underlying memory.
1 parent 5a3d046 commit 9a2d99e

24 files changed

Lines changed: 9896 additions & 1056 deletions

Doc/c-api/buffer.rst

Lines changed: 321 additions & 164 deletions
Large diffs are not rendered by default.

Doc/c-api/memoryview.rst

Lines changed: 19 additions & 10 deletions

Doc/c-api/typeobj.rst

Lines changed: 58 additions & 30 deletions

0 commit comments

Comments
 (0)