Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-69011:ctypes.create_*_buffer
clarify NUL termination character inclusion#132858
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
base:main
Are you sure you want to change the base?
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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.
This looks fine. I'll tag@encukou as the current ctypes expert, but be aware he's currently on leave.
Uh oh!
There was an error while loading.Please reload this page.
encukou commentedApr 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I'd write it like this, to also mention what happens ifsize is too large:
|
# Conflicts:#Doc/library/ctypes.rst
@encukou I have applied your suggested format. |
@encukou Friendly ping :-) |
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.
Oops, I left my comments in the “pending” state. Sorry for the delay!
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was little support for raising errors so a docs note is probably the best thing to do -- atleast for now
📚 Documentation preview 📚:https://cpython-previews--132858.org.readthedocs.build/