summaryrefslogtreecommitdiff
path: root/Objects/memoryobject.c
AgeCommit message (Collapse)AuthorLines
2020-02-24Give proper credits for the memoryview implementation. (GH-18626) (#18643)Miss Islington (bot)-1/+11
(cherry picked from commit ee3bac4cba56b51ce924f13d77b97131eec1a865) Authored-by: Stefan Krah <skrah@bytereef.org>
2018-11-27bpo-33029: Fix signatures of getter and setter functions. (GH-10746)Miss Islington (bot)-9/+9
Fix also return type for few other functions (clear, releasebuffer). (cherry picked from commit d4f9cf5545d6d8844e0726552ef2e366f5cc3abd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2017-09-07bpo-30860: Consolidate stateful runtime globals. (#3397)Eric Snow-0/+2
* group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py).
2017-04-08Expand the PySlice_GetIndicesEx macro. (#1023)Serhiy Storchaka-2/+2
2017-03-21bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. ↵Serhiy Storchaka-1/+1
(#748)
2016-12-30Merge 3.5.Stefan Krah-1/+1
2016-12-30Issue #29111: Fix memoryview signature.Stefan Krah-1/+1
2016-09-08use static inline instead of Py_LOCAL_INLINEBenjamin Peterson-16/+16
2016-09-07require C99 boolBenjamin Peterson-20/+0
2016-09-06replace PY_LONG_LONG with long longBenjamin Peterson-17/+17
2016-09-05require a long long data type (closes #27961)Benjamin Peterson-12/+0
2015-12-25Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka-2/+2
private functions.
2015-11-10Fix Visual Studio warning.Stefan Krah-1/+1
2015-11-10Iaaue #25598: Fix memory_hex from #9951 for non-contiguous buffers.Stefan Krah-1/+16
2015-08-08Issue #15944: memoryview: Allow arbitrary formats when casting to bytes.Stefan Krah-8/+2
Original patch by Martin Panter.
2015-04-25Implements issue #9951: Adds a hex() method to bytes, bytearray, & memoryview.Gregory P. Smith-0/+14
Also updates a few internal implementations of the same thing to use the new built-in code. Contributed by Arnon Yaari.
2015-03-19Issue #23632: Memoryviews now allow tuple indexing (including for ↵Antoine Pitrou-29/+120
multi-dimensional memoryviews).
2015-03-18Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka-3/+3
2015-01-29Closes #22668: Merge from 3.4.Stefan Krah-4/+52
2015-01-29Issue #22668: Ensure that format strings survive slicing after casting.Stefan Krah-4/+52
2014-10-05#16518: Bring error messages in harmony with docs ("bytes-like object")R David Murray-1/+1
Some time ago we changed the docs to consistently use the term 'bytes-like object' in all the contexts where bytes, bytearray, memoryview, etc are used. This patch (by Ezio Melotti) completes that work by changing the error messages that previously reported that certain types did "not support the buffer interface" to instead say that a bytes-like object is required. (The glossary entry for bytes-like object references the discussion of the buffer protocol in the docs.)
2014-05-18Issue #20186: memoryobject.c: add function signatures.Stefan Krah-5/+6
2014-05-14Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY()Victor Stinner-5/+2
Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between pyconfig.h and pymacros.h.
2013-11-20ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes-1/+1
Python now uses SipHash24 on all major platforms.
2013-10-03Issue #19014: memoryview.cast() is now allowed on zero-length views.Antoine Pitrou-1/+1
2013-10-03Issue #19014: memoryview.cast() is now allowed on zero-length views.Antoine Pitrou-1/+1
2013-10-02Close #19078: memoryview now supports reversedNick Coghlan-1/+1
Patch by Claudiu Popa
2013-02-19Fix error messages.Stefan Krah-2/+3
2012-11-02Issue #15814: Use hash function that is compatible with the equalityStefan Krah-0/+8
definition from #15573.
2012-09-03Issue #15855: added docstrings for memoryview methods and data descriptors ↵Alexander Belopolsky-13/+28
new in 3.3.
2012-09-03Issue #15855: added docstrings for memoryview methods and data descriptors ↵Alexander Belopolsky-10/+41
(merge 3.2).
2012-09-03Issue #15855: added docstrings for memoryview methods and data descriptors.Alexander Belopolsky-11/+43
2012-08-25Close #15573: use value-based memoryview comparisons (patch by Stefan Krah)Nick Coghlan-43/+283
2012-07-28Add unused parameter to a METH_NOARGS function.Stefan Krah-5/+5
2012-07-28Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays.Stefan Krah-7/+70
2012-05-28Issue #14930: Make memoryview objects weakrefable.Richard Oudkerk-1/+4
2012-03-05Issue #14181: Preserve backwards compatibility for getbufferprocs that a) doStefan Krah-1/+1
not adhere to the new documentation and b) manage to clobber view->obj before returning failure.
2012-03-05Issue #14181: Allow memoryview construction from an object that uses theStefan Krah-3/+0
getbuffer redirection scheme.
2012-02-25- Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah-557/+2296
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.
2011-11-21Issue #13411: memoryview objects are now hashable when the underlying object ↵Antoine Pitrou-1/+33
is hashable.
2011-08-10Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin-2/+1
The macro was introduced in #12724.
2011-02-24Merged revisions 88550 via svnmerge fromAntoine Pitrou-0/+5
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88550 | antoine.pitrou | 2011-02-24 21:50:49 +0100 (jeu., 24 févr. 2011) | 4 lines Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer with a buffer struct having a NULL data pointer. ........
2011-02-24Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer withAntoine Pitrou-0/+5
a buffer struct having a NULL data pointer.
2011-01-18Issue #10451: memoryview objects could allow to mutate a readable buffer.Antoine Pitrou-3/+0
Initial patch by Ross Lagerwall.
2010-12-03Merge branches/pep-0384.Martin v. Löwis-2/+2
2010-11-04Issue #10293: Remove obsolete field in the PyMemoryView structure,Antoine Pitrou-44/+1
unused undocumented value PyBUF_SHADOW, and strangely-looking code in PyMemoryView_GetContiguous.
2010-11-03deuglifyBenjamin Peterson-2/+3
2010-09-09Issue #9757: memoryview objects get a release() method to release theAntoine Pitrou-10/+75
underlying buffer (previously this was only done when deallocating the memoryview), and gain support for the context management protocol.
2010-09-01Fix a compilation warningAntoine Pitrou-1/+1
2010-09-01Issue #9737: Fix a crash when trying to delete a slice or an item fromAntoine Pitrou-0/+5
a memoryview object.