]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-141004: Improve `make check-c-api-docs` (GH-143564) (GH-143593)
authorPetr Viktorin <encukou@gmail.com>
Mon, 12 Jan 2026 13:04:39 +0000 (14:04 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Jan 2026 13:04:39 +0000 (14:04 +0100)
commitdeb75a529603ecd25694820aceae23dc7b253856
tree37658cf61d1574b80d311ca23ad4fc8f3613181d
parent8f85adc151e765956315ffb082e34ecfd0529383
[3.14] gh-141004: Improve `make check-c-api-docs` (GH-143564) (GH-143593)

- Gather all documented names into a set in a single pass.
  This makes the check much faster.

- Do not match substrings (e.g. documenting `PyErr_WarnEx`
  doesn't mean that `PyErr_Warn` is documented)

- Consider `PY`-prefixed names (a lot of old macros use this)

(cherry picked from commit 234a15dc4ec2d8f8ababea91532ebe896a96387a)
Tools/check-c-api-docs/ignored_c_api.txt
Tools/check-c-api-docs/main.py