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
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_releasebufferbut 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