Repository navigation
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
|
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) |
erlend-aasland
left a comment
There was a problem hiding this comment.
Some of these changes could be backported.
The backport should not mention functions added to Python 3.13. Maybe don't use automated backport? |
willingc
left a comment
There was a problem hiding this comment.
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/