Sourced from cython's changelog.
3.0.6 (2023-11-26)
Features added
Fused def function dispatch is a bit faster.
Declarations for the
wchar
PyUnicode API were added. (Github issue :issue:5836
)The Python "nogil" fork is now also detected with the new
Py_GIL_DISABLED
macro. Patch by Hugo van Kemenade (Github issue :issue:583652
)Bugs fixed
Comparing dataclasses could give different results than Python. (Github issue :issue:
5857
)
float(std::string)
generated invalid C code. (Github issue :issue:5818
)Using
cpdef
functions withcimport_from_pyx
failed. (Github issue :issue:5795
)A crash was fixed when string-formatting a Python value fails. (Github issue :issue:
5787
)On item access, Cython could try the sequence protocol before the mapping protocol in some cases if an object supports both. (Github issue :issue:
5776
)A C compiler warning was resolved. (Github issue :issue:
5794
)Complex numbers failed to compile in MSVC with C11. Patch by Lysandros Nikolaou. (Github issue :issue:
5809
)Some issues with the Limited API and with PyPy were resolved. (Github issues :issue:
5695
, :issue:5696
)A C++ issue in Python 3.13 was resolved. (Github issue :issue:
5790
)Several directives are now also available (as no-ops) in Python code. (Github issue :issue:
5803
)An error message was corrected. Patch by Mads Ynddal. (Github issue :issue:
5805
)
2486558
Prepare release of 3.0.6.cb1d78b
Update changelog.7f6577a
Fix dataclass comparison operators and enable tests (#5857)f258b67
PEP 703: Accept new Py_GIL_DISABLED
macro in addition to
PY_NOGIL
(GH-5852)df2bffa
Partially disable trashcan test in PyPy (#5832)a4bb6dc
Add missing unicode C API functions and Py_UNICODE warning (#5836)16d31ef
Disable failing Windows CyCache test (#5826)4bbefa3
Simplify pstats testf71205d
Remove allowed_failure from Python 3.12 (#5815)7683cb1
Fix "float(std::string)" and other non-PyObject arguments to
float().