- 29 May, 2020 1 commit
-
-
Stefan Behnel authored
Fix detection of reusable utility code: whenever we do string and/or unbound method replacements at all, it's not reusable.
-
- 27 May, 2020 4 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
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 8 commits
-
-
Robert Bradshaw authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Celelibi 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
-
- 25 May, 2020 1 commit
-
-
- 24 May, 2020 3 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 20 May, 2020 4 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
smutch authored
-
Stefan Behnel authored
-
- 18 May, 2020 5 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Disable GC during hacked calls to PyType_Ready() that simulate a heap type 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
-
- 16 May, 2020 9 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Also mark the case of an uninitialised memory view slice as "unlikely()" when refcounting it since it's most probably not a performance critical case.
-
Stefan Behnel authored
Mark the last deletion of a memory view slice as "unlikely()" to ask the C compiler to optimise for the repeated re-use case (usually in loops).
-
Stefan Behnel authored
-
Stefan Behnel authored
Mark the first creation of a memory view slice as "unlikely()" to ask the C compiler to optimise for the repeated re-use case (usually in loops).
-
Stefan Behnel authored
-
Stefan Behnel authored
Fix up the NumPy warnings hack by using the actual "import_array()" function declaration instead of a wrong one.
-
jbrockmendel authored
-
- 15 May, 2020 5 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
da-woods authored
Closes https://github.com/cython/cython/issues/3594
-
Stefan Behnel authored
Closes https://github.com/cython/cython/issues/1462
-
Stefan Behnel authored
-