summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_memoryview.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14930: Make memoryview objects weakrefable.Richard Oudkerk2012-05-281-0/+15
|
* - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-251-12/+38
| | | | | | | | | | | | | | | | | | 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.
* Issue #13411: memoryview objects are now hashable when the underlying object ↵Antoine Pitrou2011-11-211-0/+27
| | | | is hashable.
* Issue #10451: memoryview objects could allow to mutate a readable buffer.Antoine Pitrou2011-01-181-0/+12
| | | | Initial patch by Ross Lagerwall.
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-011-1/+1
| | | | assertRaisesRegex.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-25/+25
|
* Issue #9757: memoryview objects get a release() method to release theAntoine Pitrou2010-09-091-0/+45
| | | | | underlying buffer (previously this was only done when deallocating the memoryview), and gain support for the context management protocol.
* Issue #9737: Fix a crash when trying to delete a slice or an item fromAntoine Pitrou2010-09-011-0/+9
| | | | a memoryview object.
* Issue #8990: array.fromstring() and array.tostring() get renamed toAntoine Pitrou2010-09-011-1/+1
| | | | | | frombytes() and tobytes(), respectively, to avoid confusion. Furthermore, array.frombytes(), array.extend() as well as the array.array() constructor now accept bytearray objects. Patch by Thomas Jollans.
* Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-5/+5
|
* Issue 6329: Fix iteration for memoryviews.Raymond Hettinger2009-06-231-0/+6
|
* Issue #4580: slicing of memoryviews when itemsize != 1 is wrong.Antoine Pitrou2009-01-031-133/+207
| | | | | | | | Also fix len() to return number of items rather than length in bytes. I'm sorry it was not possible for me to work on this without reindenting a bit some stuff around. The indentation in memoryobject.c is a mess, I'll open a separate bug for it.
* Issue #4569: Interpreter crash when mutating a memoryview with an item size ↵Antoine Pitrou2008-12-071-0/+9
| | | | | | larger than 1. (together with a bit of reindenting)
* kill memoryview.size in favor of len(view)Benjamin Peterson2008-09-101-1/+1
| | | | Reviewer: Antoine Pitrou #3827
* #3712: The memoryview object had a reference leak and didn't support cyclic ↵Antoine Pitrou2008-09-011-0/+32
| | | | | | garbage collection. Reviewed by Benjamin Peterson.
* Issue #2394: implement more of the memoryview API.Antoine Pitrou2008-08-191-2/+190
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Fixed memoryview constructor. It allowed arbitrary keyword arguments. The ↵Christian Heimes2007-11-081-0/+25
bug was found by mykhal from #python. I've also added a small test case in the new test_memoryview.py