-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Closed
Copy link
Labels
Description
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 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.
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
- gh-132246: Add special buffer methods to C API Type Object docs #132247
- gh-132246: Add PEP 688 to C Buffer Protocol docs #132249
- [3.13] gh-132246: Add PEP 688 to C Buffer Protocol docs (GH-132249) #132282
- [3.14] gh-132246: Add special buffer methods to C API Type Object docs (gh-132247) #134426
- [3.13] gh-132246: Add special buffer methods to C API Type Object docs (gh-132247) #134427
Metadata
Metadata
Assignees
Labels
Projects
Status
Todo