]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-141004: Improve `make check-c-api-docs` (GH-143564) (GH-143594)
authorPetr Viktorin <encukou@gmail.com>
Mon, 12 Jan 2026 13:05:31 +0000 (14:05 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Jan 2026 13:05:31 +0000 (14:05 +0100)
commitb06ef5b59a54bc87df85a418f81c85d9fb9e46c1
treee50c3c094ac6915e69c6591e23ef7cb2a569014c
parent8fd4435cd9860bd4c2e22acced7a721a2ad9d99f
[3.13] gh-141004: Improve `make check-c-api-docs` (GH-143564) (GH-143594)

- 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