8000 GH-89455: Add missing attributes (added in 3.11) to traceback module docs by Jackenmen · Pull Request #105044 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-89455: Add missing attributes (added in 3.11) to traceback module docs #105044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 29, 2023
Prev Previous commit
Next Next commit
Add versionadded
  • Loading branch information
Jackenmen committed May 28, 2023
commit 67634c6bf3382de2be2c1511f430d48aaf69b47f
6 changes: 6 additions & 0 deletions Doc/library/traceback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ capture data for later printing in a lightweight fashion.

For exception groups - a list of :class:`TracebackException` of the original ``exceptions``.

.. versionadded:: 3.11

.. attribute:: __suppress_context__

The ``__suppress_context__`` value from the original exception.
Expand Down Expand Up @@ -275,6 +277,8 @@ capture data for later printing in a lightweight fashion.
For syntax errors - the end line number where the error occurred.
Can be `None` if not present.

.. versionadded:: 3.10

.. attribute:: text

For syntax errors - the text where the error occurred.
Expand All @@ -288,6 +292,8 @@ c 66A9 apture data for later printing in a lightweight fashion.
For syntax errors - the end offset into the text where the error occurred.
Can be `None` if not present.

.. versionadded:: 3.10

.. attribute:: msg

For syntax errors - the compiler error message.
Expand Down
0