Skip to content

[3.15] gh-158886: Add INCREF/DECREF macros to stable_abi.toml (GH-158941) - #159148

Merged
encukou merged 3 commits into
python:3.15from
vstinner:stableabi15
Oct 12, 2026
Merged

encukou merged 3 commits into
python:3.15from
vstinner:stableabi15

Conversation

@vstinner

@vstinner vstinner commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

vstinner and others added 2 commits October 10, 2026 22:59
…H-158941)

* Add 7 INCREF/DECREF macros
* distinguish between 'const' and 'macro' in stable_abi.dat
  The file now has the 'kind' from the toml, not the ReST role.
* Fix kind of PY_VECTORCALL_ARGUMENTS_OFFSET
* Make it explicit that macros aren't part of the ABI
* Add is_static_inline_function to the TOML file (these are treated as macros in the docs)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit 20cb7fc)
@read-the-docs-community

Copy link
Copy Markdown

@encukou
encukou merged commit 295bb00 into python:3.15 Oct 12, 2026
53 of 54 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner and @encukou, I could not cleanly backport this to 3.14 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 295bb00c41c5922a1e59f7769aaca02283b3ac1c 3.14

@bedevere-app

bedevere-app Bot commented Oct 12, 2026

Copy link
Copy Markdown

GH-159236 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 12, 2026
vstinner added a commit that referenced this pull request Oct 12, 2026
) (GH-159148) (#159236)

[3.15] gh-158886: Add INCREF/DECREF macros to stable_abi.toml (GH-158941) (GH-159148)

* gh-148233: Group stable_abi.toml entries per Python version (GH-157990)

(cherry picked from commit 5bde996)

* gh-158886: Add INCREF/DECREF macros to stable_abi.toml (GH-158941)

* Add 7 INCREF/DECREF macros
* distinguish between 'const' and 'macro' in stable_abi.dat
  The file now has the 'kind' from the toml, not the ReST role.
* Fix kind of PY_VECTORCALL_ARGUMENTS_OFFSET
* Make it explicit that macros aren't part of the ABI
* Add is_static_inline_function to the TOML file (these are treated as macros in the docs)

Backport to 3.14: omit "abi3t_opaque".

(cherry picked from commit 20cb7fc)


(cherry picked from commit 295bb00)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
@vstinner
vstinner deleted the stableabi15 branch October 12, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants