@@ -541,7 +541,8 @@ Querying the error indicator
541541
542542 .. note ::
543543
544- This function *does not * implicitly set the ``__traceback__ ``
544+ This function *does not * implicitly set the
545+ :attr: `~BaseException.__traceback__ `
545546 attribute on the exception value. If setting the traceback
546547 appropriately is desired, the following additional snippet is needed::
547548
@@ -753,7 +754,8 @@ Exception Objects
753754.. c :function :: PyObject* PyException_GetTraceback (PyObject *ex)
754755
755756 Return the traceback associated with the exception as a new reference, as
756- accessible from Python through :attr: `__traceback__ `. If there is no
757+ accessible from Python through the :attr: `~BaseException.__traceback__ `
758+ attribute. If there is no
757759 traceback associated, this returns ``NULL ``.
758760
759761
@@ -767,8 +769,8 @@ Exception Objects
767769
768770 Return the context (another exception instance during whose handling *ex * was
769771 raised) associated with the exception as a new reference, as accessible from
770- Python through :attr:`__context__`. If there is no context associated, this
771- returns ``NULL``.
772+ Python through the :attr:`~BaseException. __context__` attribute.
773+ If there is no context associated, this returns ``NULL``.
772774
773775
774776.. c:function:: void PyException_SetContext(PyObject *ex, PyObject *ctx)
@@ -782,7 +784,8 @@ Exception Objects
782784
783785 Return the cause (either an exception instance, or ``None ``,
784786 set by ``raise ... from ... ``) associated with the exception as a new
785- reference, as accessible from Python through :attr:`__cause__`.
787+ reference, as accessible from Python through the
788+ :attr:`~BaseException.__cause__` attribute.
786789
787790
788791.. c:function:: void PyException_SetCause(PyObject *ex, PyObject *cause)
@@ -791,7 +794,8 @@ Exception Objects
791794 it. There is no type check to make sure that *cause * is either an exception
792795 instance or ``None ``. This steals a reference to *cause *.
793796
794- :attr: `__suppress_context__ ` is implicitly set to ``True `` by this function.
797+ The :attr: `~BaseException.__suppress_context__ ` attribute is implicitly set
798+ to ``True `` by this function.
795799
796800
797801.. c :function :: PyObject* PyException_GetArgs (PyObject *ex)
0 commit comments