gh-121485: Always use 64-bit integers for integers bits count#121486
gh-121485: Always use 64-bit integers for integers bits count#121486serhiy-storchaka merged 13 commits intopython:mainfrom
Conversation
Use 64-bit integers instead of platform specific size_t or Py_ssize_t to represent the number of bits in Python integer.
mdickinson
left a comment
There was a problem hiding this comment.
Definitely +1 for the idea. I'm afraid I won't have bandwidth for a detailed code review in the near future.
|
And what do you think about imposing a hard limit on Python integers, so integers larger than |
|
I can update this PR for the later idea or implement it in a separate issue. |
That sounds totally reasonable to me (presumably as a CPython detail, rather than an aspect of Python-the-language). Any future computing landscape that makes operating on ints of that size remotely feasible is going to look very different from today's landscape. |
|
Thanks, @gpshead. |
Use 64-bit integers instead of platform specific size_t or Py_ssize_t to represent the number of bits in Python integer.