Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-132246: Add special buffer methods to C API Type Object docs#132247
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
Two special methods, __buffer__ and __release_buffer__ were added toPython 3.12 by PEP 688. The C API Type Object documentation for slotsincludes `tp_as_buffer`, and sub-slots `bf_getbuffer`, `bf_releasebuffer`but does not refer to the Python Data Model version of those. Add themissing references.
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.
We could also expand the table so__release_buffer__
fits, but I don't have much of a preference.
I tried a couple times to get my head around emacs table mode to automatedly do that but was unsuccessful, for one char I don't think worth the big diff. I may look at making all entries |
cc:@gpshead |
b529b60
intopython:mainUh oh!
There was an error while loading.Please reload this page.
…pythongh-132247)Two special methods, __buffer__ and __release_buffer__ were added toPython 3.12 by PEP 688. The C API Type Object documentation for slotsincludes `tp_as_buffer`, and sub-slots `bf_getbuffer`, `bf_releasebuffer`but does not refer to the Python Data Model version of those. Add themissing references.(cherry picked from commitb529b60)Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
…pythongh-132247)Two special methods, __buffer__ and __release_buffer__ were added toPython 3.12 by PEP 688. The C API Type Object documentation for slotsincludes `tp_as_buffer`, and sub-slots `bf_getbuffer`, `bf_releasebuffer`but does not refer to the Python Data Model version of those. Add themissing references.(cherry picked from commitb529b60)Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
GH-134426 is a backport of this pull request to the3.14 branch. |
GH-134427 is a backport of this pull request to the3.13 branch. |
gh-132247) (gh-134426)Two special methods, __buffer__ and __release_buffer__ were added toPython 3.12 by PEP 688. The C API Type Object documentation for slotsincludes `tp_as_buffer`, and sub-slots `bf_getbuffer`, `bf_releasebuffer`but does not refer to the Python Data Model version of those. Add themissing references.(cherry picked from commitb529b60)Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
gh-132247) (gh-134427)Two special methods, __buffer__ and __release_buffer__ were added toPython 3.12 by PEP 688. The C API Type Object documentation for slotsincludes `tp_as_buffer`, and sub-slots `bf_getbuffer`, `bf_releasebuffer`but does not refer to the Python Data Model version of those. Add themissing references.(cherry picked from commitb529b60)Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Two special methods,
__buffer__
and__release_buffer__
were added to Python 3.12 byPEP-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.📚 Documentation preview 📚:https://cpython-previews--132247.org.readthedocs.build/en/132247/c-api/typeobj.html#quick-reference