summaryrefslogtreecommitdiff
path: root/Cython/Compiler/MemoryView.py
Commit message (Collapse)AuthorAgeFilesLines
* Simplify code.Stefan Behnel2022-08-061-1/+1
|
* Configure THREAD_LOCKS_PREALLOCATED in MemoryView.pyx via Tempita code ↵Stefan Behnel2022-04-201-0/+1
| | | | | | generation rather than a DEF statement (as we ask users to do as well). See https://github.com/cython/cython/issues/4310
* Remove obselete memoryview getbuffer fallback code (GH-4685)da-woods2022-03-171-1/+1
| | | | | | It appears to have been be used for Python < 2.6 (which didn't have the new buffer protocol). Most of the mechanism had already been removed, but the capsule attributes that it relied on were still generated. Also removed some utility code that was only used for this feature.
* Remove some dead code.Stefan Behnel2021-05-151-5/+2
|
* Avoid the terms whitelist and blacklist.Robert Bradshaw2020-12-181-1/+1
| | | | | Though pretty standard, I can see how the use of these terms could reasonably be viewed as offensive.
* Fix crash on memoryview self-assignments (GH-3874)da-woods2020-11-071-0/+6
| | | | * Fixed crash on memoryview self-assignment * Rename memoryview decref function to match what it does
* Fix many indentation and whitespace issues throughout the code base (GH-3673)scoder2020-06-101-5/+5
| | | … and enforce them with pycodestyle.
* Avoid unnecessary generation of unused error handling code in memory view ↵Stefan Behnel2020-05-151-2/+4
| | | | slicing code.
* Clean up default value handling of memory view type.Stefan Behnel2020-04-261-1/+1
|
* Make reference counting more type specific by moving it into PyrexTypes ↵da-woods2020-03-241-3/+4
| | | | | | | (GH-3377) The idea being that struct-types like memoryviews can generate their own reference counting code using a common interface with Python objects.
* MemoryView slicing contiguity bugfix (GH-2961)Josh Tobin2019-06-011-2/+2
| | | Fixes GH-2941.
* Support for "volatile" keywordJeroen Demeyer2019-01-081-1/+1
|
* Turn the copy of a read-only memory view always into a writable memory view.Stefan Behnel2018-03-271-6/+12
| | | | Closes #2134.
* Merge branch 'master' into readonly_buffersscoder2018-02-111-11/+7
|\
| * Safely generate all used "is contiguous" helper macros even when they occur ↵Stefan Behnel2017-09-201-11/+7
| | | | | | | | | | | | | | in the same scope. Previously, using "is_f_contig" and "is_c_contig" together would leave one of them undeclared. Closes #1872.
* | Initial attempt at implementing read-only memoryviews. (Github issue #1605)Stefan Behnel2017-09-121-6/+6
|/
* Refactor dependencies between buffer/memoryview utility code to avoid unused ↵Stefan Behnel2017-09-121-5/+2
| | | | C code and remove explicit utility code dependency lists from Python code where possible since they are much better expressed right in the C code.
* adapt and apply major refactoring of IndexNode originally written by Mark ↵Stefan Behnel2015-09-041-132/+42
| | | | Florisson
* clean up some iteration code in memory viewsStefan Behnel2015-07-261-1/+1
|
* replace xrange() by range() to make it work in Py2/Py3Stefan Behnel2015-07-251-1/+1
|
* remove some code duplicationStefan Behnel2014-12-311-8/+7
|
* prevent creation of "suboffset_dim" temp when it's not used in memory view ↵Stefan Behnel2014-12-311-9/+13
| | | | slicing code
* clean up and simplify some codeStefan Behnel2014-12-311-34/+22
|
* avoid modifying locals()Stefan Behnel2014-12-311-1/+1
|
* minor code cleanupStefan Behnel2014-12-311-2/+1
|
* minor code cleanupStefan Behnel2014-12-311-2/+2
|
* Merge branch 'master' into ctupleRobert Bradshaw2014-10-171-2/+5
|\ | | | | | | | | Conflicts: CHANGES.rst
| * fix some typosStefan Behnel2014-10-091-2/+5
| |
* | Add empty declaration code method.Robert Bradshaw2014-10-161-6/+6
|/
* use explicit relative imports everywhere and enable absolute imports by defaultStefan Behnel2014-06-171-11/+13
|
* remove some legacy Py2.[45] codeStefan Behnel2014-03-221-8/+5
|
* Dissallow bint type for memoryviews.Robert Bradshaw2013-06-261-0/+3
|
* clean up dependencies of memoryview utility code snippets a bit to get rid ↵Stefan Behnel2013-04-141-2/+1
| | | | of some 'unused function' C compiler warnings
* Use wraparound and boundscheck directives for memory view slices.Robert Bradshaw2013-02-131-1/+3
|
* Don't allow more dimensions than buffer_max_dimsMark Florisson2012-05-111-0/+8
|
* Support newaxis indexing for memoryview slicesMark Florisson2012-05-111-27/+42
| | | | todo: support memoryview object newaxis indexing
* Improve fused specialization stringsMark Florisson2012-04-101-1/+3
|
* Decref memoryview slice class attributesMark Florisson2012-04-101-11/+3
|
* Allow inter-module memoryview buffer acquiring for py < 2.6Mark Florisson2012-02-201-1/+3
|
* Compare memoryview type pointers directly when coercing from memoryview to ↵Mark Florisson2012-02-201-1/+2
| | | | memoryview slice
* Don't decref slices on first assignmentMark Florisson2012-02-041-4/+7
|
* Disable @cython.initializedcheck(False) force in nogil contextMark Florisson2012-02-031-2/+4
|
* Use whitelist for declaring entries in a scopeMark Florisson2012-01-291-0/+3
|
* Merge cython array utility with memoryview utilityMark Florisson2012-01-291-15/+8
|
* Intialize object item pointer properly & C++ compatMark Florisson2012-01-221-2/+2
|
* Initialize allocated cython.array buffer with object dtype to NoneMark Florisson2012-01-221-1/+1
|
* Fix segfault caused by NULL suboffsetsMark Florisson2012-01-221-10/+14
|
* Significantly better performing scalar to slice assignmentMark Florisson2012-01-221-14/+108
|
* Support scalar slice assignmentMark Florisson2012-01-221-0/+11
|
* Support copying/slice assigning with dtype objectMark Florisson2012-01-221-4/+6
|