Select Git revision
CHANGES.rst
-
Stefan Behnel authoredStefan Behnel authored
CHANGES.rst 110.33 KiB
Cython Changelog
0.29.21 (2020-07-07)
Bugs fixed
- Fix a regression in 0.29.20 where
__div__
failed to be found in extension types. (Github issue #3688) - Fix a regression in 0.29.20 where a call inside of a finally clause could fail to compile. Patch by David Woods. (Github issue #3712)
-
exec()
did not allow recent Python syntax features in Py3.8+ due to https://bugs.python.org/issue35975. (Github issue #3695) - Binding staticmethods of Cython functions were not behaving like Python methods in Py3. Patch by Jeroen Demeyer and Michał Górny. (Github issue #3106)
- Pythran calls to NumPy methods no longer generate useless method lookup code.
- The
PyUnicode_GET_LENGTH()
macro was missing from thecpython.*
declarations. Patch by Thomas Caswell. (Github issue #3692) - The deprecated C-API functions
PyUnicode_FromUnicode()
andPyUnicode_AS_UNICODE()
are no longer used. Patches by Inada Naoki and Victor Stinner. (Github issues #3677, #3721) - Several internal code generation issues regarding temporary variables were resolved. (Github issue #3708)
0.29.20 (2020-06-10)
Bugs fixed
- Nested try-except statements with multiple
return
statements could crash due to incorrect deletion of theexcept as
target variable. (Github issue #3666) - The
@classmethod
decorator no longer rejects unknown input from other decorators. Patch by David Woods. (Github issue #3660) - Fused types could leak into unrelated usages. Patch by David Woods. (Github issue #3642)
- Now uses
Py_SET_SIZE()
andPy_SET_REFCNT()
in Py3.9+ to avoid low-level write access to these object fields. Patch by Victor Stinner. (Github issue #3639) - The built-in
abs()
function could lead to undefined behaviour when used on the negative-most value of a signed C integer type. Patch by Serge Guelton. (Github issue #1911) - Usages of
sizeof()
andtypeid()
on uninitialised variables no longer produce a warning. Patch by Celelibi. (Github issue #3575) - The C++
typeid()
function was allowed in C mode. Patch by Celelibi. (Github issue #3637) - The error position reported for errors found in f-strings was misleading. (Github issue #3674)
- The new
c_api_binop_methods
directive was added for forward compatibility, but can only be set to True (the current default value). It can be disabled in Cython 3.0.