summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
Commit message (Collapse)AuthorAgeFilesLines
* #16518: Bring error messages in harmony with docs ("bytes-like object")R David Murray2014-10-051-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.)
* Issue #20186: memoryobject.c: add function signatures.Stefan Krah2014-05-171-5/+6
|
* Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY()Victor Stinner2014-05-141-5/+2
| | | | | Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between pyconfig.h and pymacros.h.
* ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes2013-11-201-1/+1
| | | | Python now uses SipHash24 on all major platforms.
* Issue #19014: memoryview.cast() is now allowed on zero-length views.Antoine Pitrou2013-10-031-1/+1
|\
| * Issue #19014: memoryview.cast() is now allowed on zero-length views.Antoine Pitrou2013-10-031-1/+1
| |
* | Close #19078: memoryview now supports reversedNick Coghlan2013-10-021-1/+1
|/ | | | Patch by Claudiu Popa
* Fix error messages.Stefan Krah2013-02-191-2/+3
|
* Issue #15814: Use hash function that is compatible with the equalityStefan Krah2012-11-021-0/+8
| | | | definition from #15573.
* Issue #15855: added docstrings for memoryview methods and data descriptors ↵Alexander Belopolsky2012-09-031-13/+28
| | | | new in 3.3.
* Issue #15855: added docstrings for memoryview methods and data descriptors ↵Alexander Belopolsky2012-09-031-10/+41
|\ | | | | | | (merge 3.2).
| * Issue #15855: added docstrings for memoryview methods and data descriptors.Alexander Belopolsky2012-09-031-11/+43
| |
| * Merged revisions 88550 via svnmerge fromAntoine Pitrou2011-02-241-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. ........
* | Close #15573: use value-based memoryview comparisons (patch by Stefan Krah)Nick Coghlan2012-08-251-43/+283
| |
* | Add unused parameter to a METH_NOARGS function.Stefan Krah2012-07-281-5/+5
| |
* | Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays.Stefan Krah2012-07-281-7/+70
| |
* | Issue #14930: Make memoryview objects weakrefable.Richard Oudkerk2012-05-281-1/+4
| |
* | Issue #14181: Preserve backwards compatibility for getbufferprocs that a) doStefan Krah2012-03-051-1/+1
| | | | | | | | | | not adhere to the new documentation and b) manage to clobber view->obj before returning failure.
* | Issue #14181: Allow memoryview construction from an object that uses theStefan Krah2012-03-051-3/+0
| | | | | | | | getbuffer redirection scheme.
* | - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-251-563/+2302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+33
| | | | | | | | is hashable.
* | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin2011-08-111-2/+1
| | | | | | | | The macro was introduced in #12724.
* | Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer withAntoine Pitrou2011-02-241-0/+5
|/ | | | a buffer struct having a NULL data pointer.
* Issue #10451: memoryview objects could allow to mutate a readable buffer.Antoine Pitrou2011-01-181-3/+0
| | | | Initial patch by Ross Lagerwall.
* Merge branches/pep-0384.Martin v. Löwis2010-12-031-2/+2
|
* Issue #10293: Remove obsolete field in the PyMemoryView structure,Antoine Pitrou2010-11-041-44/+1
| | | | | unused undocumented value PyBUF_SHADOW, and strangely-looking code in PyMemoryView_GetContiguous.
* deuglifyBenjamin Peterson2010-11-031-2/+3
|
* Issue #9757: memoryview objects get a release() method to release theAntoine Pitrou2010-09-091-10/+75
| | | | | underlying buffer (previously this was only done when deallocating the memoryview), and gain support for the context management protocol.
* Fix a compilation warningAntoine Pitrou2010-09-011-1/+1
|
* Issue #9737: Fix a crash when trying to delete a slice or an item fromAntoine Pitrou2010-09-011-0/+5
| | | | a memoryview object.
* Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() becomeAntoine Pitrou2010-09-011-5/+2
| | | | _Py_add_one_to_C() and _Py_add_one_to_F(), respectively.
* Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99Alexander Belopolsky2010-08-111-4/+4
| | | | | va_copy, but available on all python platforms. Untabified a few unrelated files.
* Issue #7616: Fix copying of overlapping memoryview slices with the IntelAntoine Pitrou2010-07-111-11/+3
| | | | compiler.
* Merged revisions 77916 via svnmerge fromAntoine Pitrou2010-02-021-7/+5
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77916 | antoine.pitrou | 2010-02-02 23:36:17 +0100 (mar., 02 févr. 2010) | 4 lines Issue #7385: Fix a crash in `MemoryView_FromObject` when `PyObject_GetBuffer` fails. Patch by Florent Xicluna. ........
* Slightly improve buffer-related error message.Georg Brandl2009-08-041-1/+1
|
* Issue 6329: Fix iteration for memoryviews.Raymond Hettinger2009-06-231-32/+51
|
* remove memoryview.__str__ #5182Benjamin Peterson2009-02-081-17/+1
|
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-1/+1
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #4822: fix messy indentation in memoryobject.c/.h, before we may ↵Antoine Pitrou2009-01-031-432/+431
| | | | | | backport it to trunk. Reviewed on IRC by Georg Brandl, with assistance by Benjamin Peterson.
* Issue #4580: slicing of memoryviews when itemsize != 1 is wrong.Antoine Pitrou2009-01-031-68/+63
| | | | | | | | 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-93/+105
| | | | | | larger than 1. (together with a bit of reindenting)
* kill memoryview.size in favor of len(view)Benjamin Peterson2008-09-101-7/+0
| | | | Reviewer: Antoine Pitrou #3827
* #3712: The memoryview object had a reference leak and didn't support cyclic ↵Antoine Pitrou2008-09-011-34/+66
| | | | | | garbage collection. Reviewed by Benjamin Peterson.
* Issue #2394: implement more of the memoryview API.Antoine Pitrou2008-08-191-22/+220
|
* #3560: cleanup C memoryview APIAntoine Pitrou2008-08-191-3/+3
|
* Merged revisions 65654 via svnmerge fromMartin v. Löwis2008-08-131-15/+18
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65654 | martin.v.loewis | 2008-08-12 16:49:50 +0200 (Tue, 12 Aug 2008) | 6 lines Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*. ........
* #2538: bytes objects can only provide read-only buffersAntoine Pitrou2008-08-021-5/+5
|
* Merged revisions 64114 via svnmerge fromAmaury Forgeot d'Arc2008-06-181-1/+4
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r64114 | gregory.p.smith | 2008-06-11 09:41:16 +0200 (mer., 11 juin 2008) | 6 lines Merge in release25-maint r60793: Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code. ........
* Remove locking from buffer protocol as-per discussion.Travis E. Oliphant2008-06-061-3/+0
|
* Renamed PyBytes to PyByteArrayChristian Heimes2008-05-261-6/+6
|