]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132246: Add special buffer methods to C API Type Object docs (gh-132247)
authorCody Maloney <cmaloney@users.noreply.github.com>
Wed, 21 May 2025 14:21:57 +0000 (10:21 -0400)
committerGitHub <noreply@github.com>
Wed, 21 May 2025 14:21:57 +0000 (16:21 +0200)
commitb529b60fc239d19245e5fafd0514d90097c2eb40
tree8132cb01339e35b29edc2a587050d84437512d65
parentd862b6de1bcff01229318d7138ddaab755723a43
gh-132246: Add special buffer methods to C API Type Object docs (gh-132247)

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.
Doc/c-api/typeobj.rst