Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-141004: Improvemake check-c-api-docs#143564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This makes the check much faster.It also found 4 additional undocumented APIs, as it does notmatch substrings (e.g. documenting `PyErr_WarnEx` doesn'tmean that `PyErr_Warn` is documented)
ZeroIntensity left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks, this looks pretty good as-is.
One extra thing I would like to do is run the script on docs PRs, since a name being documented while also being inignored_c_api.txt will cause it to fail. So, if someone merges new documentation without updatingignored_c_api.txt, we'll see blocking failures on all C code PRs until we fix it. I haven't looked too closely at the GHA for change detection, but if you see an easy way to do that, would you mind doing it in this PR?
Uh oh!
There was an error while loading.Please reload this page.
encukou commentedJan 8, 2026
I'm not much of a GHA expert, so I'd leave changes to that to a separate PR. |
ZeroIntensity left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Ok, let's just merge this as-is.
StanFromIreland commentedJan 8, 2026
See#143573. |
234a15d intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry,@encukou, I could not cleanly backport this to |
Sorry,@encukou, I could not cleanly backport this to |
)- 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 commit234a15d)
GH-143593 is a backport of this pull request to the3.14 branch. |
- 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 commit234a15d)
GH-143594 is a backport of this pull request to the3.13 branch. |
)- 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 commit234a15d)
)- 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 commit234a15d)
bedevere-bot commentedJan 12, 2026
|
- 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)
Uh oh!
There was an error while loading.Please reload this page.
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_WarnExdoesn't mean thatPyErr_Warnis documented)Consider
PY-prefixed names (a lot of old macros use this)