Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reimplement __Pyx_PyDict_GetItemStrWithError() as a hacky version in Py2 to ↵gh3578_refleak | Stefan Behnel | 2020-05-09 | 2 | -4/+26 |
| | | | | | | get the semantics right of returning a borrowed reference with non-KeyError exceptions left in place. Closes https://github.com/cython/cython/issues/3578 | ||||
* | Update changelog. | Stefan Behnel | 2020-05-09 | 1 | -1/+8 |
| | |||||
* | Add comment to explain why "better" GIL handling is not needed in special ↵ | Stefan Behnel | 2020-05-09 | 1 | -1/+1 |
| | | | | methods (because it's held anyway). | ||||
* | Fix GIL handling on function exit for re-assigned Python arguments. | Stefan Behnel | 2020-05-09 | 2 | -0/+17 |
| | |||||
* | Fix another GIL handling case on error function exit. | Stefan Behnel | 2020-05-09 | 1 | -1/+1 |
| | |||||
* | Guard the local variable cleanup in nogil functions with 'with gil' sections ↵ | Stefan Behnel | 2020-05-09 | 2 | -2/+18 |
| | | | | | | with the GIL. Closes https://github.com/cython/cython/issues/3590 | ||||
* | Fix refleak in a rare error case. | Stefan Behnel | 2020-05-08 | 1 | -0/+1 |
| | |||||
* | Enhance refnanny a bit to raise less errors on shutdown and report better ↵ | Stefan Behnel | 2020-05-08 | 1 | -6/+14 |
| | | | | positions in those cases. | ||||
* | Add test for libc.math's modf | Dean Scarff | 2020-05-08 | 1 | -2/+12 |
| | | | | Test modf, since it's in C89 and has a non-trivial signature. | ||||
* | Update libc.math tests | Dean Scarff | 2020-05-08 | 1 | -2/+10 |
| | | | | | cimport some C99 float and long double functions, and test legacy kwargs for double functions. | ||||
* | Add C99 math.h functions to libc.math | Dean Scarff | 2020-05-08 | 1 | -0/+109 |
| | | | | | | | | | | | | | | | Adds many long double variants (e.g. expl) that were previously omitted. No functions have been removed. I've omitted the identifier for trivial parameters in new functions. However, I've retained them for existing functions for compatibility with legacy kwargs. Classes of functions/macros that are still missing: - error-handling ones, like math_errhandling and MATH_ERRNO - Bessel functions like j0, y0 Fixes cython/cython#3570 | ||||
* | Sort functions in libc.math | Dean Scarff | 2020-05-08 | 1 | -55/+43 |
| | | | | | | | Sorting alphabetically by function name makes it easier to audit changes. Also changes "type *" -> "type*" | ||||
* | 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. |