Skip to content

Conversation

@iritkatriel
Copy link
Member

@iritkatrieliritkatriel commented Oct 4, 2024

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

@AA-TurnerAA-Turner added the docs Documentation in the Doc dir label Oct 4, 2024
@iritkatrieliritkatriel merged commit 8bcf118 into python:mainOct 4, 2024
[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
Member

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-TurnerAA-TurnerOct 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@iritkatriel@AA-Turner@picnixz