-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Add PEP 688 special buffer methods to C API Type Object and Buffer Protocol docs #132246
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
Labels
Comments
cmaloney
added a commit
to cmaloney/cpython
that referenced
this issue
Apr 7, 2025
Two special methods, __buffer__ and __release_buffer__ were added to Python 3.12 by PEP 688. The C API Type Object documentation for slots includes `tp_as_buffer`, and sub-slots `bf_getbuffer`, `bf_releasebuffer` but does not refer to the Python Data Model version of those. Add the missing references.
cmaloney
added a commit
to cmaloney/cpython
that referenced
this issue
Apr 8, 2025
cc: @JelleZijlstra (PEP 688 Author) |
JelleZijlstra
pushed a commit
that referenced
this issue
Apr 8, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Apr 8, 2025
(cherry picked from commit 8421b64) Co-authored-by: Cody Maloney <[email protected]>
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
AA-Turner
pushed a commit
that referenced
this issue
May 1, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation
Two special methods,
__buffer__
and__release_buffer__
were added to Python 3.12 by PEP-688. The C API Type Object documentation for slots includestp_as_buffer
, and sub-slotsbf_getbuffer
,bf_releasebuffer
but does not refer to the Python Data Model version of those. Add the missing references.C API Type Object: https://docs.python.org/3/c-api/typeobj.html#tp-slots
Data Model: https://docs.python.org/3/reference/datamodel.html#emulating-buffer-types
Linked PRs
The text was updated successfully, but these errors were encountered: