Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support python 3.12 #254

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Support python 3.12 #254

merged 1 commit into from
Oct 16, 2023

Conversation

tornaria
Copy link
Contributor

@tornaria tornaria commented Oct 2, 2023

The necessary functions are copied from cpython 3.12 Include/internal/pycore_long.h, which is private. This should make it easy to copy new versions if cpython internals change. For cpython < 3.12 I implemented equivalent functions.

All of this is placed in separate files pycore_long.pxd and pycore_long.h copied from sagemath/cypari2#137.

Tested in 64-bit and 32-bit x86.

Fixes: #246

@tornaria
Copy link
Contributor Author

tornaria commented Oct 6, 2023

See sagemath/sage#36407 (comment) for an explanation of the change.

@malb
Copy link
Collaborator

malb commented Oct 13, 2023

Thank you so much for this, could you rebase your PR on the current master branch, it should resolve those CI failures.

@tornaria
Copy link
Contributor Author

Thank you so much for this, could you rebase your PR on the current master branch, it should resolve those CI failures.

Done

@malb malb merged commit 8305e20 into fplll:master Oct 16, 2023
25 checks passed
@tornaria tornaria deleted the py312 branch October 16, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatibility with Python 3.12
2 participants