Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-102755: Add PyErr_DisplayException(exc)#102756
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
cd1931017a9f8890b2d592c4f399ab84a68File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Add :c:func:`PyErr_DisplayException` which takes just an exception instance, | ||
| to replace the legacy :c:func:`PyErr_Display` which takes the ``(typ, exc, | ||
| tb)`` triplet. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -742,7 +742,7 @@ sys_excepthook_impl(PyObject *module, PyObject *exctype, PyObject *value, | ||
| PyObject *traceback) | ||
| /*[clinic end generated code: output=18d99fdda21b6b5e input=ecf606fa826f19d9]*/ | ||
| { | ||
| PyErr_Display(exctype, value, traceback); | ||
| PyErr_Display(NULL, value, traceback); | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this will hit the case where MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Exactly. This is sys.excepthook() which anyone can call so we need to deprecate the case where | ||
| Py_RETURN_NONE; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.