Skip to content

Add PEP 757 functions/types (int export/import) to the limited API 3.15? #91

@skirpichev

Description

@skirpichev

Export API: https://docs.python.org/3.14/c-api/long.html#export-api
PyLongWriter API: https://docs.python.org/3.14/c-api/long.html#pylongwriter-api

We already have PyLong_FromNativeBytes()/PyLong_AsNativeBytes() (much more complex internally than PEP 757 API) to import/export big integers, but these functions aren't suitable for fast conversions between different big integer types. I think it's major obstacle for (eventually) using Limited API in the gmpy2.

Vote:

Metadata

Metadata

Assignees

No one assigned

    Labels

    voteThe WG is voting (or has voted)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions