]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119786: Replace a Sphinx role with a link to `Python/errors.c` (#124990)
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>
Sat, 5 Oct 2024 00:00:19 +0000 (01:00 +0100)
committerGitHub <noreply@github.com>
Sat, 5 Oct 2024 00:00:19 +0000 (01:00 +0100)
InternalDocs/exception_handling.md

index 2e306c7046e237962e662bc399262798b9c6761c..64a346b55b841370cdf229c618f1336df018439b 100644 (file)
@@ -190,5 +190,6 @@ Exception Chaining Implementation
 [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).
+[Python/errors.c](https://github.com/python/cpython/blob/main/Python/errors.c)
+(which is ultimately called by all ``PyErr_Set*()`` functions).
 The ``__cause__`` field (explicit chaining) is set by the ``RAISE_VARARGS`` bytecode.