]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-132246: Add special buffer methods to C API Type Object docs (gh-132247...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 21 May 2025 14:33:35 +0000 (16:33 +0200)
committerGitHub <noreply@github.com>
Wed, 21 May 2025 14:33:35 +0000 (16:33 +0200)
commitcd3395a8b10f6bab912670e1d47d432aa2a21e71
treef7e27dfd64b8b8e61dd8af1176fd88ad5a2a62a9
parentf1a9d891071bd264237211ec5251dfc82bc29fb3
[3.14] gh-132246: Add special buffer methods to C API Type Object docs (gh-132247) (gh-134426)

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.

(cherry picked from commit b529b60fc239d19245e5fafd0514d90097c2eb40)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Doc/c-api/typeobj.rst