Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-117031: Add support for new member types for PyMemberDef.type#117032
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
base:main
Are you sure you want to change the base?
gh-117031: Add support for new member types for PyMemberDef.type #117032
Uh oh!
There was an error while loading. Please reload this page.
Conversation
serhiy-storchaka commented Mar 19, 2024 • edited by github-actions bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by github-actions bot
Uh oh!
There was an error while loading. Please reload this page.
Add support for standard C and Posix integer types like Py_T_UINT32, Py_T_PTRDIFF, Py_T_OFF and Py_T_PID. Add Py_T_SSIZE as alias of Py_T_PYSSIZET.
serhiy-storchaka commented Mar 27, 2024
!buildbot bsd |
bedevere-bot commented Mar 27, 2024
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit cf4ce29 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
serhiy-storchaka commented Mar 27, 2024
!buildbot s390 |
bedevere-bot commented Mar 27, 2024
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit cf4ce29 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vstinner left a comment
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.
LGTM
| PyModule_AddObject(m, "SIZEOF_WCHAR_T", PyLong_FromSsize_t(sizeof(wchar_t))); | ||
| PyModule_AddObject(m, "SIZEOF_VOID_P", PyLong_FromSsize_t(sizeof(void*))); | ||
| PyModule_AddObject(m, "SIZEOF_TIME_T", PyLong_FromSsize_t(sizeof(time_t))); | ||
| PyModule_AddObject(m, "SIZEOF_INTMAX_T", PyLong_FromSsize_t(sizeof(intmax_t))); |
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.
It's no longer used.
encukou commented Apr 16, 2025
I prefer the #132550 approach -- solving this for all int types (not just C & POSIXy ones). |
| v=Py_NewRef(Py_None); | ||
| break; | ||
| casePy_T_INT8: | ||
| casePy_T_INT8|Py_T_UINT8: |
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.
What is this type? I don't understand the usage.
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.
It accepts full range of Py_T_UINT8 plus negative values.
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.
That's weird. Which existing code needs such type?
Add support for standard C and Posix integer types like Py_T_UINT32, Py_T_PTRDIFF, Py_T_OFF and Py_T_PID.
Add Py_T_SSIZE as alias of Py_T_PYSSIZET.
📚 Documentation preview 📚: https://cpython-previews--117032.org.readthedocs.build/