Skip to content

pyo3-ffi: Add PyLong_* fixed-width integer conversion APIs (3.14+) #6015

@chirizxc

Description

@chirizxc

Summary

Add FFI bindings for new PyLong_* APIs introduced in CPython 3.14+ from longobject.h (PEP-757)

Functions to add

  • PyLong_GetNativeLayout, PyLong_Export, PyLong_FreeExport
  • PyLongWriter_* API

This should result in a slight speedup of approximately 1.1–1.5x on 3.14+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions