- 06 May, 2020 1 commit
-
-
Stefan Behnel authored
Remove the outdated getbuffer/releasebuffer implementations for the NumPy 'ndarray' since there are probably no NumPy installations out there anymore that do not support the buffer protocol themselves and are still worth supporting. See https://github.com/numpy/numpy/pull/12284#discussion_r420378155 See GH-3573
-
- 05 May, 2020 15 commits
-
-
Stefan Behnel authored
Reverse the tuple item order in the utility code caching key to move the most selective item first (just in case if we ever get dict collisions).
-
Stefan Behnel authored
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Tighten "numpy_attributes" test to assert that it's actually using a property call and not an attribute access. Also add a test for the newly added "ndarray.data" property.
-
Stefan Behnel authored
-
Stefan Behnel authored
Mark the embedded C main() function in the embedding test as "extern C" in C++ to see if that fixes the C++ builds in MSVC.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Fix a C compiler warning about unused cleanup code in buffer using functions that always raise (found by clang in the bufaccess.pyx test).
-
Matti Picus authored
-
- 04 May, 2020 4 commits
-
-
scoder authored
* Rewrite C property support (GH-2640) based on inline C methods. Supersedes GH-2640 and GH-3095. Closes GH-3521. * Test fix for `numpy_parallel.pyx`: avoid depending on whether "nd.shape" requires the GIL or not. * Turn NumPy's "ndarray.data" into a property to avoid direct struct access. * Make "ndarray.size" accessible without the GIL.
-
Stefan Behnel authored
-
Stefan Behnel authored
Prevent VerboseCodeWriter from inserting nul-bytes into the C file by switching to a more "standard" way of inserting code at a later time.
-
Stefan Behnel authored
-
- 03 May, 2020 7 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 02 May, 2020 13 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Improve error handling in "cython.array" creation code to avoid calling Py_BuildValue() with an exception set if "__pyx_format_from_typeinfo()" failed.
-
Stefan Behnel authored
Avoid unnecessary int-object creation when formatting numbers as strings in format_from_typeinfo() utility function.
-
Stefan Behnel authored
Improve error handling in "cython.array" creation code to avoid calling Py_BuildValue() with an exception set if "__pyx_format_from_typeinfo()" failed.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Refactor step handling in slice_memviewslice() utility code to make it more obvious what is happening in which case. Closes GH-3568.
-