Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix optimised string formatting when '%d' argument is a float object, which ↵gh3092_percent_d_format | Stefan Behnel | 2020-05-08 | 3 | -9/+19 |
| | | | | | | does not support '{x:d}' formatting. Closes https://github.com/cython/cython/issues/3092 | ||||
* | Test suite no longer fails in Py3.9, so enable it as a fully supported ↵ | Stefan Behnel | 2020-05-07 | 1 | -1/+0 |
| | | | | target in travis. | ||||
* | Try to fix MSVC warning "C4551: function call missing argument list". | Stefan Behnel | 2020-05-07 | 1 | -3/+3 |
| | | | | Closes #3579. | ||||
* | Restore the previous PyThreadState_Get() calls in the refnanny, but with a ↵ | Stefan Behnel | 2020-05-07 | 1 | -2/+4 |
| | | | | comment explaining the purpose of the "useless" calls. | ||||
* | Add more visible warnings to C-API functions that steal references of their ↵ | Stefan Behnel | 2020-05-07 | 3 | -14/+19 |
| | | | | arguments. | ||||
* | Turn all legacy struct fields in the NumPy ndarray type into properties and ↵ | Stefan Behnel | 2020-05-07 | 1 | -49/+74 |
| | | | | | | | document them (copied from NumPy docs). Adapt the 'nogil' declarations according to the ones in NumPy and add some missing functions. See https://github.com/numpy/numpy/pull/16170 | ||||
* | Update changelog. | Stefan Behnel | 2020-05-07 | 1 | -0/+24 |
| | |||||
* | Support for versioned pxd files (GH-3577) | scoder | 2020-05-07 | 3 | -20/+131 |
| | | | | | | * Support for versioned pxd files like "lib.cython-30.pxd" for a Cython 3.0+ version. See https://github.com/cython/cython/issues/3573 * Fix test in Py2 by avoiding namespace packages in favour of a normal package. | ||||
* | Remove "PYTHONHOME" setting from embed-test since it seems to break the I/O ↵ | Stefan Behnel | 2020-05-07 | 1 | -1/+1 |
| | | | | encoding setup in (at least) Py3.8+ venvs. | ||||
* | Remove dead code. | Stefan Behnel | 2020-05-07 | 1 | -5/+1 |
| | |||||
* | Reformat code for readability. | Stefan Behnel | 2020-05-07 | 1 | -1/+1 |
| | |||||
* | Mark "ndarray.shape" and "ndarray.strides" as not requiring the GIL. | Stefan Behnel | 2020-05-06 | 1 | -2/+2 |
| | |||||
* | Clean up some code in the refnanny. | Stefan Behnel | 2020-05-06 | 1 | -47/+35 |
| | |||||
* | Remove some non-public functions from the NumPy declarations. | Stefan Behnel | 2020-05-06 | 1 | -4/+4 |
| | | | | See https://github.com/numpy/numpy/pull/16170 | ||||
* | Add more 'nogil' declarations to NumPy functions that do not require the GIL ↵ | Stefan Behnel | 2020-05-06 | 1 | -84/+85 |
| | | | | | | (according to the declarations shipped by NumPy itself). See https://github.com/numpy/numpy/pull/16170 | ||||
* | Fix a call signature that should have raised an exception - unused? | Stefan Behnel | 2020-05-06 | 1 | -1/+1 |
| | |||||
* | Remove the outdated getbuffer/releasebuffer implementations for the NumPy ↵ | Stefan Behnel | 2020-05-06 | 1 | -91/+0 |
| | | | | | | | '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 | ||||
* | Reverse the tuple item order in the utility code caching key to move the ↵ | Stefan Behnel | 2020-05-05 | 1 | -1/+1 |
| | | | | most selective item first (just in case if we ever get dict collisions). | ||||
* | Allow utility code for declared C properties. | Stefan Behnel | 2020-05-05 | 1 | -1/+3 |
| | |||||
* | Add a marker to the generated C code if the NumPy declarations came from ↵ | Stefan Behnel | 2020-05-05 | 1 | -0/+9 |
| | | | | | | Cython/Includes/numpy/. See https://github.com/cython/cython/issues/3573 | ||||
* | Prepare release of 3.0a4.3.0a4 | Stefan Behnel | 2020-05-05 | 2 | -2/+2 |
| | |||||
* | Prevent test from depending on repr(long) in Py2. | Stefan Behnel | 2020-05-05 | 1 | -4/+7 |
| | |||||
* | Tighten "numpy_attributes" test to assert that it's actually using a ↵ | Stefan Behnel | 2020-05-05 | 1 | -3/+50 |
| | | | | | | property call and not an attribute access. Also add a test for the newly added "ndarray.data" property. | ||||
* | Provide a more convenient way to declare internal C properties. | Stefan Behnel | 2020-05-05 | 2 | -11/+26 |
| | |||||
* | Mark the embedded C main() function in the embedding test as "extern C" in ↵ | Stefan Behnel | 2020-05-05 | 2 | -3/+8 |
| | | | | C++ to see if that fixes the C++ builds in MSVC. | ||||
* | Update changelog. | Stefan Behnel | 2020-05-05 | 1 | -2/+25 |
| | |||||
* | Disable embedding test on Windows since it fails to find "Py_DecodeLocale()" ↵ | Stefan Behnel | 2020-05-05 | 1 | -0/+3 |
| | | | | for some reason. | ||||
* | Rename embedding tests in docs to make it easier to find and select in the ↵ | Stefan Behnel | 2020-05-05 | 3 | -11/+11 |
| | | | | test suite. | ||||
* | Add tests that f-strings are rejected in nogil sections. | Stefan Behnel | 2020-05-05 | 1 | -9/+20 |
| | |||||
* | Add a test that side-effects of unused f-strings still apply. | Stefan Behnel | 2020-05-05 | 1 | -0/+21 |
| | |||||
* | Fix a C compiler warning about unused cleanup code in buffer using functions ↵ | Stefan Behnel | 2020-05-05 | 1 | -23/+25 |
| | | | | that always raise (found by clang in the bufaccess.pyx test). | ||||
* | add test for ndarray attributes (GH-3521) | Matti Picus | 2020-05-05 | 1 | -0/+37 |
| | |||||
* | Rewrite the C property feature (GH-3571) | scoder | 2020-05-04 | 9 | -160/+370 |
| | | | | | | | | | | | * 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. | ||||
* | Update the venerable tree-processing-phases comment in the "Node" class. | Stefan Behnel | 2020-05-04 | 1 | -6/+6 |
| | |||||
* | Prevent VerboseCodeWriter from inserting nul-bytes into the C file by ↵ | Stefan Behnel | 2020-05-04 | 1 | -9/+7 |
| | | | | switching to a more "standard" way of inserting code at a later time. | ||||
* | Stop calling PyEval_InitThreads() In Py3.7+ (where it has become a no-op). | Stefan Behnel | 2020-05-04 | 2 | -2/+3 |
| | |||||
* | Clean up some code formatting. | Stefan Behnel | 2020-05-03 | 1 | -3/+2 |
| | |||||
* | Clean up some code formatting. | Stefan Behnel | 2020-05-03 | 1 | -12/+8 |
| | |||||
* | Remove Py2 fallback from embedding example since the rest of the code is ↵ | Stefan Behnel | 2020-05-03 | 1 | -7/+1 |
| | | | | Py3-only anyway. | ||||
* | Include a complete embedding example in the docs. | Stefan Behnel | 2020-05-03 | 3 | -1/+117 |
| | |||||
* | Fix include file reference in docs. | Stefan Behnel | 2020-05-03 | 1 | -1/+1 |
| | |||||
* | Fix rst syntax in docs. | Stefan Behnel | 2020-05-03 | 2 | -2/+2 |
| | |||||
* | Update documentation on embedding to warn that calling the module init ↵ | Stefan Behnel | 2020-05-03 | 1 | -8/+18 |
| | | | | function is wrong. | ||||
* | Merge branch '0.29.x' | Stefan Behnel | 2020-05-02 | 0 | -0/+0 |
|\ | |||||
| * | Tentatively add Py3.9 to the travis test targets in 0.29.x, but allow it to ↵ | Stefan Behnel | 2020-05-02 | 1 | -0/+9 |
| | | | | | | | | fail. | ||||
* | | Fix unrelated test after changing MemoryView.pyx. | Stefan Behnel | 2020-05-02 | 1 | -6/+6 |
| | | |||||
* | | Finally add a test tag "py3only" for tests that should be excluded in Py2. | Stefan Behnel | 2020-05-02 | 1 | -0/+1 |
| | | |||||
* | | Refactor "cython.array" initialisation to avoid a bit of overhead. | Stefan Behnel | 2020-05-02 | 1 | -28/+35 |
| | | |||||
* | | Clean up "__pyx_array_new()" call to follow the normal "call; ERR()" pattern. | Stefan Behnel | 2020-05-02 | 1 | -6/+5 |
| | | |||||
* | | Merge branch '0.29.x' | Stefan Behnel | 2020-05-02 | 1 | -0/+3 |
|\ \ | |/ |