Hello. In 3.13, this doc page: https://docs.python.org/3.13/c-api/apiabiversion.html said this at the end: All the given macros are defined in Include/patchlevel.h
In 3.14, this note was removed: https://docs.python.org/3.14/c-api/apiabiversion.html
The commit that removed this makes it look like an accident: 1439b81
That note was present for a long time. If #include <patchlevel.h> is no longer suggested to get the versions, those docs should mention it. If it is still suggested, the note should be put back.
Thanks.
Linked PRs
Hello. In 3.13, this doc page: https://docs.python.org/3.13/c-api/apiabiversion.html said this at the end:
All the given macros are defined in Include/patchlevel.hIn 3.14, this note was removed: https://docs.python.org/3.14/c-api/apiabiversion.html
The commit that removed this makes it look like an accident: 1439b81
That note was present for a long time. If
#include <patchlevel.h>is no longer suggested to get the versions, those docs should mention it. If it is still suggested, the note should be put back.Thanks.
Linked PRs