-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
gh-108082: C API: Add tests for PyErr_WriteUnraisable() #111455
gh-108082: C API: Add tests for PyErr_WriteUnraisable() #111455
Conversation
Also document the behavior when called with NULL.
.. versionchanged:: 3.4 | ||
Print a traceback. Print only traceback if *obj* is ``NULL``. |
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.
.. versionchanged:: 3.8 | ||
Use :func:`sys.unraisablehook`. |
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.
Doc/c-api/exceptions.rst
Outdated
.. versionchanged:: 3.2 | ||
Accept ``NULL`` as argument. |
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.
Actually, it was cosmetic change. It skipped " in <NULL>
" if obj is NULL.
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. I just made a minor coding style suggestion.
Co-authored-by: Victor Stinner <[email protected]>
Thank you Victor for your review. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…GH-111455) Also document the behavior when called with NULL. (cherry picked from commit bca3305) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-111507 is a backport of this pull request to the 3.12 branch. |
…1455) (GH-111507) Also document the behavior when called with NULL. (cherry picked from commit bca3305) Co-authored-by: Serhiy Storchaka <[email protected]>
…GH-111455) Also document the behavior when called with NULL.
…GH-111455) Also document the behavior when called with NULL.
…GH-111455) Also document the behavior when called with NULL.
Also document the behavior when called with NULL.
📚 Documentation preview 📚: https://cpython-previews--111455.org.readthedocs.build/