Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Py_PACK_VERSION macros #128629

Closed
Closed
Assignees
encukou
Labels
@encukou

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 byPy_VERSION_HEX andPy_LIMITED_API.
    For example,Py_PACK_FULL_VERSION(3, 14, 0, 0xA, 1) evaluates to 0x030E00A1.

  • Py_PACK_VERSION(x, y): shorthand forPy_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 withctypes.

The functions takeint arguments and returnuint32_t. Inputs are masked (high bits are ignored).

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

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp