Skip to content

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

Closed
@cmaloney

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions