- 27 May, 2020 2 commits
-
-
Stefan Behnel authored
-
Victor Stinner authored
* Add __Pyx_SET_SIZE() function: use Py_SET_SIZE() on Python 3.9.0a4 and newer, or use Py_SIZE() as an l-value on older Python versions. Py_SIZE() must not be used as an l-value anymore in Python 3.9: Py_SET_SIZE() must be used instead: * https://bugs.python.org/issue39573 * https://docs.python.org/dev/c-api/structures.html#c.Py_SET_SIZE * Add __Pyx_SET_REFCNT() function: use Py_SET_REFCNT() on Python 3.9.0a4 and newer, or use Py_REFCNT() as an l-value on older Python versions. Py_REFCNT() must not be used as an l-value anymore in Python 3.9: Py_SET_REFCNT() must be used instead: * https://bugs.python.org/issue39573 * https://docs.python.org/dev/c-api/structures.html#c.Py_SET_REFCNT Use it in ModuleNode.generate_usr_dealloc_call(): * Replace ++Py_REFCNT(o) with __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1) * Replace --Py_REFCNT(o) with __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1)
-
- 26 May, 2020 16 commits
-
-
Stefan Behnel authored
-
Robert Bradshaw authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Celelibi authored
-
serge-sans-paille authored
Fixes #1911
-
Stefan Behnel authored
-
serge-sans-paille authored
Fixes #1911
-
Stefan Behnel authored
Fix handling of "no-cpp" test tag for error tests, where "cpp" is already removed from the list of test backends.
-
Stefan Behnel authored
-
Celelibi authored
Closes #3575
-
Celelibi authored
-
Stefan Behnel authored
Fix handling of "no-cpp" test tag for error tests, where "cpp" is already removed from the list of test backends.
-
Stefan Behnel authored
-
- 25 May, 2020 3 commits
-
-
Celelibi authored
Closes #3575
-
Stefan Behnel authored
Closes https://github.com/cython/cython/issues/3632
-
-
- 24 May, 2020 7 commits
-
-
Stefan Behnel authored
-
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.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 23 May, 2020 8 commits
-
-
jbrockmendel authored
See https://github.com/numpy/numpy/pull/16266
-
Stefan Behnel authored
Use a more efficient way to check for PyCFunction and CyFunction at the same time since checking for PyCFunction became more costly in Py3.9.
-
Stefan Behnel authored
Use an inlined version of PyType_HasFeature() instead of directly accessing "tp_flags" in the generated code.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 21 May, 2020 1 commit
-
-
- 20 May, 2020 3 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-