Repository navigation
Conversation
|
The Doctest job fails with:
I documented Problem: macros declared as functions by stable_abi.toml are checked by |
|
I updated the PR to document all macros as macros, not as functions. |
|
Updated Doctest error:
|
Documentation build overview
33 files changed ·
|
|
I updated |
I created #158941 to add some macros.
Ok.
For end users (developers using of the limited CAPI), I don't think that it makes a big difference if a function is implemented as a macro or as a function. In the limited C API, it's the same. I like how some macros are documented as function to show parameter types and return type, that's nice!
I think that it's fine to not document some special macros, but Misc/stable_abi.toml should be complete since it's used by tools to check if a C extension uses correctly the limited C API / stable ABI, no? Note: https://docs.python.org/dev/c-api/intro.html#c.PyAPI_DATA and https://docs.python.org/dev/c-api/intro.html#c.Py_ULL are documented.
Py_IS_FINITE() is a deprecated alias to isfinite(): // Py_IS_FINITE(X)
// Return 1 if float or double arg is neither infinite nor NAN, else 0.
// Soft deprecated since Python 3.14, use isfinite() instead.
#define Py_IS_FINITE(X) isfinite(X)It's documented: https://docs.python.org/dev/c-api/float.html#c.Py_IS_FINITE. What should we not add it to stable_abi.toml? It's just a fact that it's part of the limited C API.
Ok, later I will prepare a PR focused on Check functions. |
|
I mark this PR as a draft. I will split it into smaller PRs, as suggested by @encukou. |
That's true! But there are also users of the Stable ABI that don't use C, such as (our)
Yes! I just want to be clear that they're not in the ABI :)
No. PEP 652 specifically says about the manifest (which is now named
Discrepancies between the TOML file and what's actually exposed are bugs. They might be bugs in the manifest, but they might also be bugs in the headers. The manifest was initially generated from
Since these are all the same, it might make sense to add one common description and link it everywhere. |
Since you have an idea on how these Check functions should be document, oh sure, go ahead! This PR should contain all Check functions which are part of the limited C API and are not documented in stable_abi.toml yet. So you can check the list. |
|
Hmm, turns out I already started on that, for capi-workgroup/decisions#115 :) |

Misc/stable_abi.toml#158886