An error occurred fetching the project authors.
- 18 Jun, 2020 1 commit
-
-
Ashwin Srinath authored
Closes #1603.
-
- 10 Jun, 2020 1 commit
-
-
scoder authored
… and enforce them with pycodestyle.
-
- 04 Jun, 2020 1 commit
-
-
da-woods authored
Fixes https://github.com/cython/cython/issues/3642
-
- 31 May, 2020 1 commit
-
-
da-woods authored
Fixes https://github.com/cython/cython/issues/3642
-
- 29 May, 2020 1 commit
-
-
Stefan Behnel authored
-
- 24 May, 2020 1 commit
-
-
scoder authored
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.
-
- 23 May, 2020 1 commit
-
-
Stefan Behnel authored
Use an inlined version of PyType_HasFeature() instead of directly accessing "tp_flags" in the generated code.
-
- 11 May, 2020 2 commits
-
-
Stefan Behnel authored
Avoid an additional utility code section for 2-exception matching by relying on existing special-cased macros.
-
Stefan Behnel authored
-
- 10 May, 2020 1 commit
-
-
Stefan Behnel authored
Avoid generating an "abort()" check for known non-0 steps in prange(). Instead, make it a compile time error if we know it's zero.
-
- 09 May, 2020 4 commits
-
-
Stefan Behnel authored
Add comment to explain why "better" GIL handling is not needed in special methods (because it's held anyway).
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Closes https://github.com/cython/cython/issues/3590
-
- 05 May, 2020 1 commit
-
-
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).
-
- 04 May, 2020 3 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.
-
- 30 Apr, 2020 1 commit
-
-
Stefan Behnel authored
Fix duplicate code generation in assert condition, found for lambda functions that are used as conditions in "test_grammar.py".
-
- 29 Apr, 2020 2 commits
-
-
Stefan Behnel authored
This allows taking advantage of the automatic "with gil" block handling for raising exceptions, allows proper control flow analysis, etc.
-
Stefan Behnel authored
Always call the refnanny on function exit if we set it up on entry, not just in GIL-owning functions. This was previously using inconsistent conditions on entry and exit of the function.
-
- 28 Apr, 2020 8 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Instead of simply asserting that the error exit case and the success exit case of a nogil function are aligned, make sure they are before joining them back together. This is necessary because the error code path is more likely to require the GIL for cleanup operations than the success path – which is a good thing, actually, so we try to streamline the success case at the expense of more work on the error path.
-
Stefan Behnel authored
Move assertion where it actually belongs, since it does not apply to the buffer cleanup case (which semantically jumps over it with a 'goto').
-
Stefan Behnel authored
-
Stefan Behnel authored
Move the branch-hint generation from Nodes.py into Optimize.py to make it available to tree assertion tests (and add such a test).
-
Stefan Behnel authored
Support the 'assert' statement in nogil sections, as long as it has a plain C condition and constant message (string) value.
-
Stefan Behnel authored
-
Stefan Behnel authored
Closes #3558.
-
- 27 Apr, 2020 1 commit
-
-
Stefan Behnel authored
Acquire the GIL in nogil functions only when strictly needed on function exit, e.g. for cleaning up temp variables from with-gil blocks or adding tracebacks. Closes GH-3554.
-
- 26 Apr, 2020 1 commit
-
-
Stefan Behnel authored
-
- 23 Apr, 2020 1 commit
-
-
da-woods authored
Follows Python behaviour, but excludes "__pyx_…" names in utility code. Closes GH-1382.
-
- 21 Apr, 2020 1 commit
-
-
da-woods authored
Right now it's used in a few simple cases (function call and single assignment) Don't attempt to remove reference types. Be wary of the "safety check" for double moves when things like result() are called twice Made sure fallback option was genuinely c++03 complient so that test should pass on clang
-
- 20 Apr, 2020 2 commits
-
-
Stefan Behnel authored
-
msg555 authored
Closes #2753.
-
- 19 Apr, 2020 1 commit
-
-
Stefan Behnel authored
-
- 18 Apr, 2020 1 commit
-
-
da-woods authored
-
- 11 Apr, 2020 1 commit
-
-
Stefan Behnel authored
Add __Pyx_IS_TYPE() macro to mimic the new "Py_IS_TYPE()" macro in CPython 3.9 that replaces the "Py_TYPE() == …" type check pattern.
-
- 01 Apr, 2020 1 commit
-
-
Stefan Behnel authored
Fix branch prediction hints for plain (unlikely/exceptional) "raise" statements in if/else clauses that are not preceded by other statements.
-
- 31 Mar, 2020 1 commit
-
-
da-woods authored
These were previously getting missed. Added code to specialize them and tests to prove it. Fixes https://github.com/cython/cython/issues/3142 Also fixes https://github.com/cython/cython/issues/3460 - (seems related enough to go in the same PR)
-