Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Apply suggestions from code review gh2056_special_binop | Robert Bradshaw | 2020-05-25 | 2 | -3/+5 |
| | | | | | Use special __Pyx methods. Co-authored-by: scoder <stefan_ml@behnel.de> | ||||
* | Merge branch '0.29.x' into gh2056_special_binop | Stefan Behnel | 2020-05-25 | 6 | -17/+207 |
|\ | |||||
| * | Merge branch '0.29.x' of git+ssh://github.com/cython/cython into 0.29.x | Stefan Behnel | 2020-05-25 | 6 | -17/+206 |
| |\ | |||||
| | * | Invoke binop super method via direct slot access. | Robert Bradshaw | 2020-05-23 | 2 | -32/+7 |
| | | | |||||
| | * | Add support for pow operator. | Robert Bradshaw | 2020-05-23 | 3 | -3/+29 |
| | | | |||||
| | * | Python-style binary operation methods. | Robert Bradshaw | 2020-05-23 | 6 | -17/+205 |
| | | | |||||
* | | | Remove dead code. | Stefan Behnel | 2020-05-25 | 1 | -2/+0 |
| | | | | | | | | | | | | Closes https://github.com/cython/cython/issues/3632 | ||||
* | | | Update changelog. | Stefan Behnel | 2020-05-24 | 1 | -2/+30 |
| | | | |||||
* | | | Change default of "always_allow_keywords" directive to True (GH-3605) | scoder | 2020-05-24 | 15 | -34/+188 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids the METH_O function signature by default, since it does not match normal Python semantics. * Fix unicode name handling of no-args functions when allowing keywords. * Fix a crash when a keyword argument is passed to a function that does not allow them. Previously, the reported key name was not set and thus NULL. * Extend "always_allow_keywords" test to cover some edge cases. Some are commented out as they currently only work with the fastcall implementation. | ||||
* | | | Exclude a test that crashes in PyPy. | Stefan Behnel | 2020-05-24 | 1 | -0/+7 |
| | | | |||||
* | | | Use "!" instead of the less clear "== 0" when testing for type features. | Stefan Behnel | 2020-05-24 | 1 | -3/+3 |
| | | | |||||
* | | | Follow numpy.pxd change in numpy/#16266 (GH-3630) | jbrockmendel | 2020-05-24 | 1 | -2/+91 |
| | | | | | | | | | See https://github.com/numpy/numpy/pull/16266 | ||||
* | | | Use a more efficient way to check for PyCFunction and CyFunction at the same ↵ | Stefan Behnel | 2020-05-24 | 3 | -8/+13 |
| | | | | | | | | | | | | time since checking for PyCFunction became more costly in Py3.9. | ||||
* | | | Use an inlined version of PyType_HasFeature() instead of directly accessing ↵ | Stefan Behnel | 2020-05-23 | 5 | -8/+14 |
| | | | | | | | | | | | | "tp_flags" in the generated code. | ||||
* | | | Extend test. | Stefan Behnel | 2020-05-23 | 1 | -2/+3 |
| | | | |||||
* | | | Implement type inference for stared unpacking targets as list. | Stefan Behnel | 2020-05-23 | 2 | -2/+34 |
| | | | |||||
* | | | Make error message more helpful. | Stefan Behnel | 2020-05-23 | 1 | -1/+1 |
| | | | |||||
* | | | Enable a working test. | Stefan Behnel | 2020-05-23 | 1 | -0/+3 |
| | | | |||||
* | | | Add parentheses to clarify a C expression. | Stefan Behnel | 2020-05-23 | 1 | -1/+1 |
| | | | |||||
* | | | Document "@exceptval" default for return type annotations. | Stefan Behnel | 2020-05-21 | 1 | -0/+7 |
| | | | | | | | | | | | | See https://github.com/cython/cython/issues/3625 | ||||
* | | | Merge branch '0.29.x' | Stefan Behnel | 2020-05-20 | 1 | -0/+13 |
|\ \ \ | |/ / | |||||
| * | | Prepare release of 0.29.19.0.29.19 | Stefan Behnel | 2020-05-20 | 1 | -1/+1 |
| | | | |||||
| * | | Update changelog. | Stefan Behnel | 2020-05-20 | 1 | -0/+13 |
| | | | |||||
| * | | Use platform dependent test for "unpacked_struct_with_arrays" (GH-3621) | smutch | 2020-05-20 | 1 | -1/+5 |
| | | | |||||
| * | | Fix a macro name that was accidentally broken in ↵ | Stefan Behnel | 2020-05-20 | 1 | -1/+1 |
| |/ | | | | | | | c9dec706354b06a8689223cfb92bdbbc140a1594. | ||||
* | | Use platform dependent test for "unpacked_struct_with_arrays" (GH-3621) | smutch | 2020-05-20 | 1 | -1/+5 |
| | | |||||
* | | The names of Cython's internal types (functions, generator, coroutine, etc.) ↵ | Stefan Behnel | 2020-05-20 | 8 | -16/+18 |
| | | | | | | | | | | | | | | are now prefixed with the shared module name, instead of making them look like homeless builtins. See https://bugs.python.org/issue20204 See https://github.com/python/cpython/commit/490055a1673b524da2ebe2312f072aba2a826036 | ||||
* | | Provide timedelta.total_seconds() implementation in datetime.pxd (GH-3616) | jbrockmendel | 2020-05-19 | 2 | -1/+30 |
| | | |||||
* | | Make PyDateTime_DELTA_*() macros in datetime.pxd available in Py2. | Stefan Behnel | 2020-05-19 | 2 | -41/+75 |
| | | | | | | | | See https://github.com/cython/cython/pull/3616 | ||||
* | | Fixed "test_*_path_exists" + CompilerDirectivesNode (GH-3619) | da-woods | 2020-05-19 | 2 | -0/+24 |
| | | | | | | | | | | | | | | When test_assert_path_exists or test_fail_if_path_exists was used on a function containing a CompilerDirectivesNode it was inherited by that CompilerDirectivesNode. Therefore you got misleading test failures if the path was in the function but not within that CompilerDirectivesNode. | ||||
* | | Merge branch '0.29.x'3.0a5 | Stefan Behnel | 2020-05-18 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | Update changelog. | Stefan Behnel | 2020-05-18 | 1 | -0/+3 |
| | | |||||
* | | Update changelog. | Stefan Behnel | 2020-05-18 | 1 | -0/+4 |
| | | |||||
* | | Prepare release of 3.0a5. | Stefan Behnel | 2020-05-18 | 2 | -2/+2 |
| | | |||||
* | | Merge branch 'master' of git+ssh://github.com/cython/cython | Stefan Behnel | 2020-05-18 | 2 | -52/+148 |
|\ \ | |||||
| * | | Fix several issues in overflow checks (GH-3591) | Sam Sneddon | 2020-05-18 | 2 | -52/+148 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix #3588: Make existing overflow code safe Signed overflow is undefined behaviour in C and compilers can and do optimized on that basis. * Speed up our overflow impls Note this is primarily based on performance of compilers which do not support __builtin_add_overflow (i.e., not Clang >= 3.4 & gcc >= 5), mostly looking at several gcc 4 releases (used by older, supported, RHEL releases and Debian 8 "Jessie") and MSVC. * Use __builtin_XXX_overflow if available This is much quicker in general, as these all just then read the overflow flag from the status register. | ||||
* | | | Merge branch '0.29.x' | Stefan Behnel | 2020-05-18 | 3 | -4/+5 |
|\ \ \ | |/ / |/| / | |/ | |||||
| * | Prepare release of 0.29.18.0.29.18 | Stefan Behnel | 2020-05-18 | 2 | -2/+2 |
| | | |||||
| * | Add ticket reference explaining why a work-around is needed. | Stefan Behnel | 2020-05-18 | 1 | -0/+1 |
| | | |||||
* | | Clean up changelog. | Stefan Behnel | 2020-05-18 | 1 | -15/+1 |
| | | |||||
* | | Merge branch '0.29.x' | Stefan Behnel | 2020-05-18 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Update changelog. | Stefan Behnel | 2020-05-18 | 1 | -0/+4 |
| | | |||||
| * | Disable GC during hacked calls to PyType_Ready() that simulate a heap type ↵ | Stefan Behnel | 2020-05-18 | 1 | -9/+53 |
| | | | | | | | | | | | | for an actual non-heap type, because it can lead to crashes if GC visits such a hacked type. Closes https://github.com/cython/cython/issues/3603 | ||||
* | | Disable GC during hacked calls to PyType_Ready() that simulate a heap type ↵ | Stefan Behnel | 2020-05-18 | 1 | -9/+53 |
| | | | | | | | | | | | | for an actual non-heap type, because it can lead to crashes if GC visits such a hacked type. Closes https://github.com/cython/cython/issues/3603 | ||||
* | | Fix unrelated test after changing memoryview code. | Stefan Behnel | 2020-05-17 | 1 | -6/+6 |
| | | |||||
* | | Minor code cleanup. | Stefan Behnel | 2020-05-17 | 1 | -1/+1 |
| | | |||||
* | | Reduce the code overhead of the memoryview implementation a little by ↵ | Stefan Behnel | 2020-05-17 | 1 | -0/+3 |
| | | | | | | | | disabling CyFunctions for its methods. | ||||
* | | Reduce the code overhead of exception raising in generated Cython code and ↵ | Stefan Behnel | 2020-05-17 | 2 | -22/+22 |
| | | | | | | | | the memoryview code by avoiding explicit calls to create the exception and prepared constant argument tuples. "raise Exc, message" can do this implicitly. | ||||
* | | Move less common ref-counting cases for memory views out of the fast-path ↵ | Stefan Behnel | 2020-05-17 | 1 | -25/+28 |
| | | | | | | | | and only look up the atomic acquisition count value once per INC/DEC operation. | ||||
* | | Ensure utility code keeps the directives that it was compiled with (GH-3615) | da-woods | 2020-05-17 | 3 | -2/+30 |
| | | | | | | When it's merged into the main module, wrap it in a CompilerDirectivesNode. |