-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve some C API documentation #108768
Improve some C API documentation #108768
Conversation
* Express functions which take argument as a C string in terms of functions which take Python object. * Use "note" directive for PyMapping_HasKey() and PyMapping_HasKeyString() notes.
255b3e7
to
38908ff
Compare
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.
LGTM.
It would be nice to have a macro which can be defined to opt-out from functions known to silently ignore exceptions: capi-workgroup/problems#54 (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.
Some of these changes could be backported.
The backport should not mention functions added to Python 3.13. Maybe don't use automated backport? |
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.
Looks good @serhiy-storchaka. Much clearer documentation now of silent errors.
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
* Express functions which take argument as a C string in terms of functions which take Python object. * Use "note" directive for PyMapping_HasKey() and PyMapping_HasKeyString() notes.. (cherry picked from commit 6f97eee) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-108785 is a backport of this pull request to the 3.12 branch. |
* Express functions which take argument as a C string in terms of functions which take Python object. * Use "note" directive for PyMapping_HasKey() and PyMapping_HasKeyString() notes. (cherry picked from commit 6f97eee) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Express functions which take argument as a C string in terms of functions which take Python object. * Use "note" directive for PyMapping_HasKey() and PyMapping_HasKeyString() notes. (cherry picked from commit 6f97eee) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-108786 is a backport of this pull request to the 3.11 branch. |
📚 Documentation preview 📚: https://cpython-previews--108768.org.readthedocs.build/