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-101578: Normalize the current exception#101607
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
87889bc14f21ff8b62323508850f073409ad260b13d5480e90c3dc7baa70bad1ae8edafe6c34f566f6e199f0880File 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,13 @@ | ||
| Add new C-API functions for saving and restoring the current exception: | ||
| ``PyErr_GetRaisedException`` and ``PyErr_SetRaisedException``. | ||
| These functions take and return a single exception rather than | ||
| the triple of ``PyErr_Fetch`` and ``PyErr_Restore``. | ||
| This is less error prone and a bit more efficient. | ||
| The three arguments forms of saving and restoring the | ||
| current exception: ``PyErr_Fetch`` and ``PyErr_Restore`` | ||
| are deprecated. | ||
| Also add ``PyException_GetArgs`` and ``PyException_SetArgs`` | ||
| as convenience functions to help dealing with | ||
| exceptions in the C API. |
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.
does this need "extern" too?