summaryrefslogtreecommitdiff
path: root/Modules/_testbuffer.c
AgeCommit message (Collapse)AuthorLines
2017-04-08Expand the PySlice_GetIndicesEx macro. (#1023) (#1044)Serhiy Storchaka-3/+4
(cherry picked from commit b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8)
2017-01-08Add comment why the change in d83884b3a427 wasn't necessary.Stefan Krah-0/+1
2017-01-08Revert part of 3cb3e224b692 in code that I maintain.Stefan Krah-1/+1
2015-12-25Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka-1/+1
2015-03-18Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka-4/+4
2015-02-16Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka-1/+1
overflows. Added few missed PyErr_NoMemory().
2015-02-16Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka-1/+1
overflows. Added few missed PyErr_NoMemory().
2015-02-01Issue #22445: PyBuffer_IsContiguous() now implements precise contiguityStefan Krah-17/+36
tests, compatible with NumPy's NPY_RELAXED_STRIDES_CHECKING compilation flag. Previously the function reported false negatives for corner cases.
2013-10-14Re #18521: fix not-quite-C syntax that works only because the PyXXX_Check ↵Georg Brandl-1/+1
are macros defined with () around them.
2013-05-20Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()Charles-Francois Natali-28/+28
when applicable.
2012-09-06_testbuffer.c: In all current use cases of cmp_structure() dest->format andStefan Krah-3/+2
src->format are either both NULL or both non-NULL. However, it is safer to generalize the function. Found by Coverity.
2012-08-23Issue #15770: Check invalid arguments in test function. Patch by Victor Stinner.Stefan Krah-2/+14
2012-07-28Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays.Stefan Krah-0/+44
2012-05-16Issue #14779: Get sizeof(void *) directly rather than relying on sysconfig.Stefan Krah-0/+7
2012-03-05Issue #14181: Preserve backwards compatibility for getbufferprocs that a) doStefan Krah-14/+15
not adhere to the new documentation and b) manage to clobber view->obj before returning failure.
2012-03-05Issue #14181: Test creating memoryviews from a static exporter with bothStefan Krah-1/+125
view.obj==NULL and view.obj==base.
2012-03-05Issue #14181: Allow memoryview construction from an object that uses theStefan Krah-10/+15
getbuffer redirection scheme.
2012-02-25- Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah-0/+2683
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.