Releases: cython/cython
Releases Β· cython/cython
3.0.11-1
3.0.11 (2024-08-05) =================== Features added -------------- * The C++11 ``emplace*`` methods were added to ``libcpp.deque``. Patch by Somin An. (Github issue :issue:`6159`) Bugs fixed ---------- * The exception check value of functions declared in pxd files was not always applied in 3.0.10. (Github issue :issue:`6122`) * A crash on exception deallocations was fixed. (Github issue :issue:`6022`) * A crash was fixed when assigning a zero-length slice to a memoryview. Patch by Michael Man. (Github issue :issue:`6227`) * ``libcpp.optional.value()`` could crash if it raised a C++ exception. Patch by Alexander Condello. (Github issue :issue:`6190`) * The return type of ``str()`` was mishandled, leading to crashes with ``language_level=3``. (Github issue :issue:`6166`) * ``bytes.startswith/endswith()`` failed for non-bytes substrings (e.g. ``bytearray``). (Github issue :issue:`6168`) * Fused ctuples crashed Cython. (Github issue :issue:`6068`) * A compiler crash was fixed when using extension types in fused types. (Github issue :issue:`6204`) * The module cleanup code was incorrect for globally defined memory view slices. (Github issue :issue:`6276`) * Some adaptations were made to enable compilation in Python 3.13. (Github issues :issue:`5997`, :issue:`6182`, :issue:`6251`)
3.0.10
3.0.10 (2024-03-30) =================== Bugs fixed ---------- * Cython generated incorrect self-casts when directly calling final methods of subtypes. Patch by Lisandro Dalcin. (Github issue :issue:`2747`) * Internal C names generated from C function signatures could become too long for MSVC. (Github issue :issue:`6052`) * The ``noexcept`` warnings could be misleading in some cases. Patch by Gonzalo TornarΓa. (Github issue :issue:`6087`) * The ``@cython.ufunc`` implementation could generate incomplete C code. (Github issue :issue:`6064`) * The ``libcpp.complex`` declarations could result in incorrect C++ code. Patch by Raffi Enficiaud. (Github issue :issue:`6037`) * Several tests were adapted to work with both NumPy 1.x and 2.0. Patch by Matti Picus. (Github issues :issue:`6076`, :issue:`6100`) * C compiler warnings when the freelist implementation is disabled (e.g. on PyPy) were fixed. It can now be disabled explicitly with the C macro guard ``CYTHON_USE_FREELISTS=0``. (Github issue :issue:`6099`) * Some C macro guards for feature flags were missing from the NOGIL Python configuration. * Some recently added builtins were unconditionally looked up at module import time (if used by user code) that weren't available on all Python versions and could thus fail the import. * A performance hint regarding exported pxd declarations was improved. (Github issue :issue:`6001`)