Skip to content

Add PEP 688 special buffer methods to C API Type Object and Buffer Protocol docs #132246

Closed

Description

@cmaloney

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

Activity

  1. added a commit that references this issue on Apr 7, 2025
  2. 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
  3. 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
  4. 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
  5. added a commit that references this issue on Apr 8, 2025
  6. cmaloney commented on Apr 8, 2025

    @cmaloney
    ContributorAuthor

    cc: @JelleZijlstra (PEP 688 Author)

  7. added a commit that references this issue on Apr 8, 2025
  8. added a commit that references this issue on Apr 8, 2025
  9. added a commit that references this issue on May 1, 2025
  10. added a commit that references this issue on May 21, 2025
  11. added 2 commits that reference this issue on May 21, 2025
  12. added 2 commits that reference this issue on May 21, 2025
  13. ambv commented on May 21, 2025

    @ambv
    Contributor

    Thanks, Cody!

  14. added a commit that references this issue on May 26, 2025
  15. added a commit that references this issue on Jul 12, 2025
  16. added a commit that references this issue on Aug 4, 2025
  17. added a commit that references this issue on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions