Skip to content

Changes for #158941 - #20

Merged
vstinner merged 6 commits into
vstinner:stable_ref_macrosfrom
encukou:stable_ref_macros
Oct 7, 2026
Merged

vstinner merged 6 commits into
vstinner:stable_ref_macrosfrom
encukou:stable_ref_macros

Conversation

@encukou

@encukou encukou commented Oct 7, 2026

Copy link
Copy Markdown

See python#158941

  • The Sphinx extension should distinguish between const and macro (see the comment in stable_abi.toml for what that means). So, expose "kind" in Doc/data/stable_abi.dat, instead of the ReST role.
  • Fix kind of PY_VECTORCALL_ARGUMENTS_OFFSET: it's just a number
  • Make it explicit that (function-like) macros aren't part of the Stable ABI. They're part of the (C-only) Limited API.
    • Some people (rightfully) complain that the terms "Stable ABI" vs. "Limited API" are confusing, so instead of "Limited API" I prefer "available when compiling for Stable ABI" in new docs.
  • Per-item data should be in the TOML file. Move STATIC_INLINE_FUNCTIONS there.

@vstinner
vstinner merged commit 803f7ad into vstinner:stable_ref_macros Oct 7, 2026
3 checks passed
@vstinner

vstinner commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants