Sourced from cython's changelog.
3.1.2 (2025-06-09)
Bugs fixed
Attribute lookups failed on the
boolbuiltin type. (Github issue :issue:6905)Type checks on or-ed union types could incorrectly return false. (Github issue :issue:
6420)Negative list indexing could accidentally wrap around twice in PyPy and the Limited API.
Iterating over literal sequences with starred (unpacked) items could infer a wrong type for the loop variable and fail to assign the values. (Github issue :issue:
6924)Calls to C functions taking exception types failed to check for a
Noneargument. (Github issue :issue:6420)Fused functions had an incorrect
__module__attribute. (Github issue :issue:6897)The type of Cython implemented functions had an incorrect
__module__attribute. (Github issue :issue:6841)Errors while indexing into
bytearrayorstrinnogilsections could crash. (Github issue :issue:6947)
bytearray.append()could silently accept some invalid character numbers.The C++11
<type_traits>header was included regardless of the C++ version. (Github issue :issue:6896)
PyDict_GetItemStringRef()was accidentally used in older Limited API versions. (Github issue :issue:6914)
abort()was used but not always available in the Limited API. (Github issue :issue:6918)Some dependencies were missing from the
depfile. (Github issue :issue:6938)Embedded function signatures were not always separated from the existing docstring. (Github issue :issue:
6904)
numpy.mathwas missing fromCython/Includes/and could not be cimported. (Github issue :issue:6859)
... (truncated)
51f471d
Bump ccache action version (GH-6955)40c2324
Update changelog.98b70ee
Fixup shared metaclass in 3.1.x (GH-6953)59e2502
Make sure we correctly reject large negative integer values in
"bytearray.app...466891c
Use an explicit cast to avoid a C conversion warning.b0d6aa1
Prepare release of 3.1.2.0440d5f
Update changelog.e860884
Fix __module__ attribute of shared types with metaclass (#6882)5e9d7ad
Build: Explicitly include "numpy/math.pxd" again.ea65182
Fix error handling in nogil indexing of bytearray and str (#6947)