]> granicus.if.org Git - python/commit
- Issue #10181: New memoryview implementation fixes multiple ownership
authorStefan Krah <skrah@bytereef.org>
Sat, 25 Feb 2012 11:24:21 +0000 (12:24 +0100)
committerStefan Krah <skrah@bytereef.org>
Sat, 25 Feb 2012 11:24:21 +0000 (12:24 +0100)
commit9a2d99e28a5c2989b2db4023acae4f550885f2ef
tree29bb99fc008de30ecc1e765d6d14ee35cd5bdfe5
parent5a3d04623b0dc8219326989bc3619d5f56737a94
- Issue #10181: New memoryview implementation fixes multiple ownership
  and lifetime issues of dynamically allocated Py_buffer members (#9990)
  as well as crashes (#8305, #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 #12834: Fix incorrect results of memoryview.tobytes() for
  non-contiguous arrays.

- Issue #5231: Introduce memoryview.cast() method that allows changing
  format and shape without making a copy of the underlying memory.
24 files changed:
Doc/c-api/buffer.rst
Doc/c-api/memoryview.rst
Doc/c-api/typeobj.rst
Doc/library/stdtypes.rst
Doc/whatsnew/3.3.rst
Include/abstract.h
Include/memoryobject.h
Include/object.h
Lib/ctypes/test/test_pep3118.py
Lib/test/test_buffer.py [new file with mode: 0644]
Lib/test/test_memoryview.py
Lib/test/test_sys.py
Misc/ACKS
Misc/NEWS
Misc/valgrind-python.supp
Modules/_testbuffer.c [new file with mode: 0644]
Modules/_testcapimodule.c
Objects/abstract.c
Objects/memoryobject.c
Objects/object.c
PCbuild/_testbuffer.vcproj [new file with mode: 0644]
PCbuild/pcbuild.sln
PCbuild/readme.txt
setup.py