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.
changed the title [-]Update C API Type Object Documentation to include PEP-688 Buffer Protocol special methods[/-][+]Add PEP 688 special buffer methods to C API Type Object docs[/+]on Apr 7, 2025
changed the title [-]Add PEP 688 special buffer methods to C API Type Object docs[/-][+]Add PEP 688 special buffer methods to C API Type Object and Buffer Object docs[/+]on Apr 7, 2025
changed the title [-]Add PEP 688 special buffer methods to C API Type Object and Buffer Object docs[/-][+]Add PEP 688 special buffer methods to C API Type Object and Buffer Protocol docs[/+]on Apr 7, 2025
Activity
pythongh-132246: Add special buffer methods to C API Type Object docs
pythongh-132246: Add PEP 688 to C Buffer Protocol docs
cmaloney commented on Apr 8, 2025
cc: @JelleZijlstra (PEP 688 Author)
gh-132246: Add PEP 688 to C Buffer Protocol docs (#132249)
pythongh-132246: Add PEP 688 to C Buffer Protocol docs (pythonGH-132249)
[3.13] gh-132246: Add PEP 688 to C Buffer Protocol docs (GH-132249) (#…
gh-132246: Add special buffer methods to C API Type Object docs (gh-1…
pythongh-132246: Add special buffer methods to C API Type Object docs (…
pythongh-132246: Add special buffer methods to C API Type Object docs (…
[3.14] gh-132246: Add special buffer methods to C API Type Object docs (
[3.13] gh-132246: Add special buffer methods to C API Type Object docs (
ambv commented on May 21, 2025
Thanks, Cody!
pythongh-132246: Add special buffer methods to C API Type Object docs (…
pythongh-132246: Add special buffer methods to C API Type Object docs (…
pythongh-132246: Add special buffer methods to C API Type Object docs (…
pythongh-132246: Add special buffer methods to C API Type Object docs (…