Skip to content
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-119786: move a few more details on exception handling from devguide to InternalDocs #124989

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Oct 4, 2024

We don't need to explain in the internals doc what exception chaining is, just where it is implemented.

@AA-Turner AA-Turner added the docs Documentation in the Doc dir label Oct 4, 2024
@iritkatriel iritkatriel merged commit 8bcf118 into python:main Oct 4, 2024
26 checks passed
[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).
Copy link
Contributor

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)

Copy link
Member

@AA-Turner AA-Turner Oct 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants