]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141004: Improve `make check-c-api-docs` (GH-143564)
authorPetr Viktorin <encukou@gmail.com>
Fri, 9 Jan 2026 10:16:50 +0000 (11:16 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Jan 2026 10:16:50 +0000 (11:16 +0100)
commit234a15dc4ec2d8f8ababea91532ebe896a96387a
tree4262d9e475666902744435a4720d837ab9a9fb2b
parentfd6d41b292a9d7251872700e77d5073c52f4fb9d
gh-141004: Improve `make check-c-api-docs` (GH-143564)

- 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)
Tools/check-c-api-docs/ignored_c_api.txt
Tools/check-c-api-docs/main.py