-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Provide PyLong conversions with Py_(u)intptr_t #110863
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
Comments
Hey, I would love to work on this if you don't mind. |
@encukou Does this enhancement sound like a good idea? If so, @Lincoln-developer would like to work on it. |
Thanks for the propoal.
|
Somehow related, Python 3.14 adds the following functions:
|
See also issue gh-62070 for PyLong_FromIntMax_t() and PyLong_FromUintMax_t(). |
Since 3.13 you can use |
If not, please reopen :) |
Feature or enhancement
Proposal:
The following C API functions would be nice to have and probably easy to provide.
Note that the given integers types should exist, as they have official counterparts in C99.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
There is a discussion of a similar feature in #62070, but I would argue that
intptr_t
anduintptr_t
are much more common in real life thatintmax_t
.The text was updated successfully, but these errors were encountered: