Skip to content

Adding Py_HashBuffer to the Stable ABI #102

@vstinner

Description

@vstinner

It was proposed to add Py_HashBuffer() to the Stable ABI. API:

Py_hash_t Py_HashBuffer(const void *ptr, Py_ssize_t len)
This function always succeeds.

The function is properly documented and tested (by test_capi.test_hash). It has a well defined API. IMO it's a good candidate for the stable ABI.

The function was added to Python 3.14 to replace the private _Py_HashBytes() API.

Vote:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions