Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.0.6
->==3.0.9
Release Notes
cython/cython (cython)
v3.0.9
Compare Source
==================
Features added
Assigning
const
values to non-const variables now issues a warning.(Github issue :issue:
5639
)Using
noexcept
on a function returning Python objects now issues a warning.(Github issue :issue:
5661
)Some C-API usage was updated for the upcoming CPython 3.13.
Patches by Victor Stinner et al. (Github issues :issue:
6003
, :issue:6020
)The deprecated
Py_UNICODE
type is no longer used, unless required by user code.(Github issue :issue:
5982
)std::string.replace()
declarations were added to libcpp.string.Patch by Kieran Geary. (Github issue :issue:
6037
)Bugs fixed
Cython generates incorrect (but harmless) self-casts when directly calling
final methods of subtypes. Lacking a better solution, the errors that recent
gcc versions produce have been silenced for the time being.
Original patch by Michał Górny. (Github issue :issue:
2747
)Unused variable warnings about clineno were fixed when C lines in tracebacks are disabled.
(Github issue :issue:
6035
)Subclass deallocation of extern classes could crash if the base class uses GC.
Original patch by Jason Fried. (Github issue :issue:
5971
)Type checks for Python
memoryview
could use an invalid C function.Patch by Xenia Lu. (Github issue :issue:
5988
)Calling final fused functions could generate invalid C code.
(Github issue :issue:
5989
)Declaring extern enums multiple times could generate invalid C code.
(Github issue :issue:
5905
)pyximport
used relative paths incorrectly.Patch by Stefano Rivera. (Github issue :issue:
5957
)Running Cython with globbing characters (
[]*?
) in the module search path could fail.Patch by eewanco. (Github issue :issue:
5942
)Literal strings that include braces could change the C code indentation.
Other changes
(Github issue :issue:
5941
)v3.0.8
Compare Source
==================
Bugs fixed
Using
const
together with defined fused types could fail to compile.(Github issue :issue:
5230
)A "use after free" bug was fixed in parallel sections.
(Github issue :issue:
5922
)Several types were not available as
cython.*
types in pure Python code.The generated code is now correct C89 again, removing some C++ style
//
commentsand C99-style declaration-after-code code ordering. This is still relevant for some
ols C compilers, specifically ones that match old Python 2.7 installations.
v3.0.7
Compare Source
==================
Bugs fixed
In the iterator of generator expressions,
await
andyield
were not correctly analysed.(Github issue :issue:
5851
)cpdef
enums with the same name cimported from different modules could lead toinvalid C code.
(Github issue :issue:
5887
)Some declarations in
cpython.unicode
were fixed and extended.(Github issue :issue:
5902
)Compiling fused types used in pxd files could crash Cython in Python 3.11+.
(Github issues :issue:
5894
, :issue:5588
)Source files with non-ASCII file names could crash Cython.
(Github issue :issue:
5873
)Includes all bug-fixes and features from the 0.29 maintenance branch
up to the :ref:
0.29.37
release.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.