Skip to content
Next Next commit
Add missing 3.10/11 attributes to traceback module docs
  • Loading branch information
Jackenmen committed May 28, 2023
commit 2151f118c2097e2a293debfc87ae8e88bbe419b4
14 changes: 14 additions & 0 deletions Doc/library/traceback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ capture data for later printing in a lightweight fashion.

A :class:`TracebackException` of the original ``__context__``.

.. attribute:: exceptions

For exception groups - a list of :class:`TracebackException` of the original ``exceptions``.
Comment thread
Jackenmen marked this conversation as resolved.
Outdated

.. attribute:: __suppress_context__

The ``__suppress_context__`` value from the original exception.
Expand Down Expand Up @@ -266,6 +270,11 @@ capture data for later printing in a lightweight fashion.

For syntax errors - the line number where the error occurred.

.. attribute:: end_lineno

For syntax errors - the end line number where the error occurred.
Can be `None` if not present.

.. attribute:: text

For syntax errors - the text where the error occurred.
Expand All @@ -274,6 +283,11 @@ capture data for later printing in a lightweight fashion.

For syntax errors - the offset into the text where the error occurred.

.. attribute:: end_offset

For syntax errors - the end offset into the text where the error occurred.
Can be `None` if not present.

.. attribute:: msg

For syntax errors - the compiler error message.
Expand Down