summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Apply suggestions from code review gh2056_special_binopRobert Bradshaw2020-05-252-3/+5
| | | | | Use special __Pyx methods. Co-authored-by: scoder <stefan_ml@behnel.de>
* Merge branch '0.29.x' into gh2056_special_binopStefan Behnel2020-05-256-17/+207
|\
| * Merge branch '0.29.x' of git+ssh://github.com/cython/cython into 0.29.xStefan Behnel2020-05-256-17/+206
| |\
| | * Invoke binop super method via direct slot access.Robert Bradshaw2020-05-232-32/+7
| | |
| | * Add support for pow operator.Robert Bradshaw2020-05-233-3/+29
| | |
| | * Python-style binary operation methods.Robert Bradshaw2020-05-236-17/+205
| | |
* | | Remove dead code.Stefan Behnel2020-05-251-2/+0
| | | | | | | | | | | | Closes https://github.com/cython/cython/issues/3632
* | | Update changelog.Stefan Behnel2020-05-241-2/+30
| | |
* | | Change default of "always_allow_keywords" directive to True (GH-3605)scoder2020-05-2415-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 Behnel2020-05-241-0/+7
| | |
* | | Use "!" instead of the less clear "== 0" when testing for type features.Stefan Behnel2020-05-241-3/+3
| | |
* | | Follow numpy.pxd change in numpy/#16266 (GH-3630)jbrockmendel2020-05-241-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 Behnel2020-05-243-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 Behnel2020-05-235-8/+14
| | | | | | | | | | | | "tp_flags" in the generated code.
* | | Extend test.Stefan Behnel2020-05-231-2/+3
| | |
* | | Implement type inference for stared unpacking targets as list.Stefan Behnel2020-05-232-2/+34
| | |
* | | Make error message more helpful.Stefan Behnel2020-05-231-1/+1
| | |
* | | Enable a working test.Stefan Behnel2020-05-231-0/+3
| | |
* | | Add parentheses to clarify a C expression.Stefan Behnel2020-05-231-1/+1
| | |
* | | Document "@exceptval" default for return type annotations.Stefan Behnel2020-05-211-0/+7
| | | | | | | | | | | | See https://github.com/cython/cython/issues/3625
* | | Merge branch '0.29.x'Stefan Behnel2020-05-201-0/+13
|\ \ \ | |/ /
| * | Prepare release of 0.29.19.0.29.19Stefan Behnel2020-05-201-1/+1
| | |
| * | Update changelog.Stefan Behnel2020-05-201-0/+13
| | |
| * | Use platform dependent test for "unpacked_struct_with_arrays" (GH-3621)smutch2020-05-201-1/+5
| | |
| * | Fix a macro name that was accidentally broken in ↵Stefan Behnel2020-05-201-1/+1
| |/ | | | | | | c9dec706354b06a8689223cfb92bdbbc140a1594.
* | Use platform dependent test for "unpacked_struct_with_arrays" (GH-3621)smutch2020-05-201-1/+5
| |
* | The names of Cython's internal types (functions, generator, coroutine, etc.) ↵Stefan Behnel2020-05-208-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)jbrockmendel2020-05-192-1/+30
| |
* | Make PyDateTime_DELTA_*() macros in datetime.pxd available in Py2.Stefan Behnel2020-05-192-41/+75
| | | | | | | | See https://github.com/cython/cython/pull/3616
* | Fixed "test_*_path_exists" + CompilerDirectivesNode (GH-3619)da-woods2020-05-192-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.0a5Stefan Behnel2020-05-181-0/+3
|\ \ | |/
| * Update changelog.Stefan Behnel2020-05-181-0/+3
| |
* | Update changelog.Stefan Behnel2020-05-181-0/+4
| |
* | Prepare release of 3.0a5.Stefan Behnel2020-05-182-2/+2
| |
* | Merge branch 'master' of git+ssh://github.com/cython/cythonStefan Behnel2020-05-182-52/+148
|\ \
| * | Fix several issues in overflow checks (GH-3591)Sam Sneddon2020-05-182-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 Behnel2020-05-183-4/+5
|\ \ \ | |/ / |/| / | |/
| * Prepare release of 0.29.18.0.29.18Stefan Behnel2020-05-182-2/+2
| |
| * Add ticket reference explaining why a work-around is needed.Stefan Behnel2020-05-181-0/+1
| |
* | Clean up changelog.Stefan Behnel2020-05-181-15/+1
| |
* | Merge branch '0.29.x'Stefan Behnel2020-05-181-0/+4
|\ \ | |/
| * Update changelog.Stefan Behnel2020-05-181-0/+4
| |
| * Disable GC during hacked calls to PyType_Ready() that simulate a heap type ↵Stefan Behnel2020-05-181-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 Behnel2020-05-181-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 Behnel2020-05-171-6/+6
| |
* | Minor code cleanup.Stefan Behnel2020-05-171-1/+1
| |
* | Reduce the code overhead of the memoryview implementation a little by ↵Stefan Behnel2020-05-171-0/+3
| | | | | | | | disabling CyFunctions for its methods.
* | Reduce the code overhead of exception raising in generated Cython code and ↵Stefan Behnel2020-05-172-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 Behnel2020-05-171-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-woods2020-05-173-2/+30
| | | | | | When it's merged into the main module, wrap it in a CompilerDirectivesNode.