# Bug report ### Bug description: `PyABIInfo_VAR` in `modsupport.h` generates incorrect code because `_PyABIInfo_DEFAULT` has been defined as a function. The parentheses should be removed. ### CPython versions tested on: 3.15 ### Operating systems tested on: macOS <!-- gh-linked-prs --> ### Linked PRs * gh-142230 * gh-142833 <!-- /gh-linked-prs -->
Activity
gh-142225: Fix `PyABIInfo_VAR` macro (GH-142230)
encukou commentedon Dec 4, 2025
Thanks!
Keeping the issue open, I'll add tests later.
[-]PyABIInfo_VAR broken[/-][+]Test `PyABIInfo_VAR`[/+]pythongh-142225: Fix `PyABIInfo_VAR` macro (pythonGH-142230)
[-]Test `PyABIInfo_VAR`[/-][+]Fix and test `PyABIInfo_VAR`[/+]gh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcapi (
encukou commentedon Dec 17, 2025
Added. I'm planning more, but let's not keep this open for that.
encukou commentedon Jan 13, 2026
Another use/test is proposed in #142827.