Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-108082: C API: Add tests for PyErr_WriteUnraisable()#111455
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
gh-108082: C API: Add tests for PyErr_WriteUnraisable()#111455
Uh oh!
There was an error while loading.Please reload this page.
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. |
serhiy-storchakaOct 29, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
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 commitbca3305)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-111507 is a backport of this pull request to the3.12 branch. |
…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.
Uh oh!
There was an error while loading.Please reload this page.
Also document the behavior when called with NULL.
📚 Documentation preview 📚:https://cpython-previews--111455.org.readthedocs.build/