Skip to content

Commit 2d8b6a4

Browse files
authored
gh-119786: Replace a Sphinx role with a link to Python/errors.c (#124990)
1 parent 6efd95c commit 2d8b6a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

InternalDocs/exception_handling.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,6 @@ Exception Chaining Implementation
190190
[Exception chaining](https://docs.python.org/dev/tutorial/errors.html#exception-chaining)
191191
refers to setting the ``__context__`` and ``__cause__`` fields of an exception as it is
192192
being raised. The ``__context__`` field is set by ``_PyErr_SetObject()`` in
193-
:cpy-file:`Python/errors.c` (which is ultimately called by all ``PyErr_Set*()`` functions).
193+
[Python/errors.c](https://github.com/python/cpython/blob/main/Python/errors.c)
194+
(which is ultimately called by all ``PyErr_Set*()`` functions).
194195
The ``__cause__`` field (explicit chaining) is set by the ``RAISE_VARARGS`` bytecode.

0 commit comments

Comments
 (0)