Skip to content

Support python 3.12#254

Merged
malb merged 1 commit intofplll:masterfrom
tornaria:py312
Oct 16, 2023
Merged

Support python 3.12#254
malb merged 1 commit intofplll:masterfrom
tornaria:py312

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
@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