| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
is hashable.
|
|
|
|
| |
Initial patch by Ross Lagerwall.
|
|
|
|
| |
assertRaisesRegex.
|
| |
|
|
|
|
|
| |
underlying buffer (previously this was only done when deallocating the
memoryview), and gain support for the context management protocol.
|
|
|
|
| |
a memoryview object.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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
........
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
larger than 1.
(together with a bit of reindenting)
|
|
|
|
| |
Reviewer: Antoine Pitrou #3827
|
|
|
|
|
|
| |
garbage collection.
Reviewed by Benjamin Peterson.
|
| |
|
| |
|
|
bug was found by mykhal from #python. I've also added a small test case in the new test_memoryview.py
|