Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-119786: move a few more details on exception handling from devguide to InternalDocs#124989
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…evguide to InternalDocs
| [Exception chaining](https://docs.python.org/dev/tutorial/errors.html#exception-chaining) | ||
| refers to setting the``__context__`` and``__cause__`` fields of an exception as it is | ||
| being raised. The``__context__`` field is set by``_PyErr_SetObject()`` in | ||
| :cpy-file:`Python/errors.c` (which is ultimately called by all``PyErr_Set*()`` functions). |
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.
(cpy-file is a Sphinx role; but this is now merged so you can change it next time)
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.
Oh oops, I missed that -- PR in a moment. [#124990]
A
Uh oh!
There was an error while loading.Please reload this page.
We don't need to explain in the internals doc what exception chaining is, just where it is implemented.