Using None as default value for arguments annotated as int could crash Cython.
(Github issue :issue:5643)
Default values of fused types that include complex could generate invalid C code
with -DCYTHON_CCOMPLEX=0.
(Github issue :issue:5644)
Using C++ enum class types in extension type method signatures could generate invalid C code.
(Github issue :issue:5637)
3.0.1 (2023-08-25)
Features added
The error messages regarding exception declarations were improved in order to give
better help about possible reasons and fixes.
(Github issue :issue:5547)
Bugs fixed
Memory view types in Python argument annotations no longer accept None. They now
require an explicit Optional[] or a None default value in order to allow None
to be passed. This was an oversight in the 3.0.0 release and is a BACKWARDS INCOMPATIBLE
change. However, since it only applies to code using Python syntax, it probably only
applies to newly written code that was written for Cython 3.0 and can easily be adapted.
In most cases, we expect that this change will avoid bugs in user code rather than
produce problems.
(Github issue :issue:5612)
nogil functions using parallel code could freeze when called with the GIL held.
(Github issues :issue:5564, :issue:5573)
Relative cimports could end up searching globally and find the same package installed
elsewhere, potentially in another version.
(Github issue :issue:5511)
Attribute lookups on known standard library modules could accidentally search
in the module namespace instead.
(Github issue :issue:5536)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps cython from 3.0.0 to 3.0.2.
Changelog
Sourced from cython's changelog.
... (truncated)
Commits
fc5b199
Prepare release of 3.0.2.e4c7043
Minor code cleanup.96390ae
Move an enum class macro before the types block which might need it (GH-5656)0bdfb97
Fix typo in declaration (GH-5655)351e13c
Avoid useless runtime type checks when coercing a None default argument to a ...584078a
Avoid using an unescaped name in the code (however unlikely it is that someon...61535cf
Fix invalid C code with -DCYTHON_CCOMPLEX=0 when assigning a simple (integer)...0870f6b
Fix test in Py2.310720f
Convert a test to language_level=3.7c3d175
Remove useless shebang in Cython/Build/Cythonize.py (GH-5647)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show