You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.12 changes the internal representation of int objects (to speed up common cases). Usage of Py_SIZE and ob_digit in convert.pyx will fail.
The supported way of extracting the value of integers (if they don't fit in a C long long) is the Python method to_bytes, and there's from_bytes to go back. (If this is too slow for cypari, please chime in in the discussion.)
I think those will be hard to use because pari/gmp stores integers in "word little-endian" meaning [word0, word1, word2, ...]. This is the same as byte little-endian when the words themselves are little-endian. But in a big-endian architecture, there's no natural way to do it.
Python 3.12 changes the internal representation of
int
objects (to speed up common cases). Usage ofPy_SIZE
andob_digit
inconvert.pyx
will fail.The supported way of extracting the value of integers (if they don't fit in a C
long long
) is the Python method to_bytes, and there'sfrom_bytes
to go back. (If this is too slow for cypari, please chime in in the discussion.)(edit) See also: python/cpython#101292
The text was updated successfully, but these errors were encountered: