Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-121485: Always use 64-bit integers for integers bits count#121486
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Use 64-bit integers instead of platform specific size_t or Py_ssize_tto represent the number of bits in Python integer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
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 lookvery different from today's landscape. |
Thanks,@gpshead. |
Uh oh!
There was an error while loading.Please reload this page.
Use 64-bit integers instead of platform specific size_t or Py_ssize_t to represent the number of bits in Python integer.