Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Add Py_PACK_VERSION macros #128629

Closed
Closed

Description

@encukou

Add these to limited API:

  • Py_PACK_FULL_VERSION(x, y, z, level, serial): pack a version number from components
    into the format used by Py_VERSION_HEX and Py_LIMITED_API.
    For example, Py_PACK_FULL_VERSION(3, 14, 0, 0xA, 1) evaluates to 0x030E00A1.

  • Py_PACK_VERSION(x, y): shorthand for Py_PACK_FULL_VERSION(x, y, 0, 0, 0),
    useful because the first two version components often determine ABI
    compatibility.

These are primarily macros, but we will export library functions with the same names and functionality, for use in wrappers for non-C languages – for example, Python with ctypes.

The functions take int arguments and return uint32_t. Inputs are masked (high bits are ignored).

C API WG decision: capi-workgroup/decisions#47

Linked PRs

Activity

  1. self-assigned this
    on Jan 8, 2025
  2. added a commit that references this issue on Jan 9, 2025
  3. added a commit that references this issue on May 28, 2025
  4. added a commit that references this issue on Jul 12, 2025
  5. added a commit that references this issue on Aug 4, 2025
  6. 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

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions