Adapt to changed function name in Python 3.13 #4902
Merged
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.
Description
According to https://docs.python.org/3.13/whatsnew/3.13.html:
Add PyThreadState_GetUnchecked() function: similar to PyThreadState_Get(), but don't kill the process with a fatal error if it is NULL. The caller is responsible to check if the result is NULL. Previously, the function was private and known as _PyThreadState_UncheckedGet().
As part of preparing for updating Python to version to 3.13 in Fedora 41 (scheduled for October 2024) rebuilds of existing Python packages are attempted against the current Python 3.13 version in a separate development repository. Currently this is Python 3.13.0a1.
F41 Change Proposal: Python 3.13 (System-Wide)
As a maintainer of packages in Fedora, I got two bugs filed against packages I maintain that failed to build in this rebuiild due to the issue this PR proposes to address:
With the proposed change these packages can be built with the Python 3.13.0a1 from the special development repo.