diff --git a/changelog/6255.bugfix.rst b/changelog/6255.bugfix.rst index 831187feb84..6eb064ef3f5 100644 --- a/changelog/6255.bugfix.rst +++ b/changelog/6255.bugfix.rst @@ -1,3 +1,4 @@ -Clear the ``sys.last_traceback``, ``sys.last_type`` and ``sys.last_value`` -attributes by deleting them instead of setting them to ``None``. This better -matches the behaviour of the Python standard library. +Clear the :py:attr:`sys.last_traceback`, :py:attr:`sys.last_type` +and :py:attr:`sys.last_value` attributes by deleting them instead +of setting them to ``None``. This better matches the behaviour of +the Python standard library.