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
Merged
Prev Previous commit
Next Next commit
Remove 3.10 changes
  • Loading branch information
Jackenmen committed May 28, 2023
commit d749737f03462cd02edfb97102ff7f0a54cfc0f4
14 changes: 0 additions & 14 deletions Doc/library/traceback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,6 @@ 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.

.. versionadded:: 3.10

.. attribute:: text

For syntax errors - the text where the error occurred.
Expand All @@ -292,13 +285,6 @@ 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.

.. versionadded:: 3.10

.. attribute:: msg

For syntax errors - the compiler error message.
Expand Down
4 changes: 2 additions & 2 deletions Lib/traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@ class TracebackException:
occurred.
- :attr:`offset` For syntax errors - the offset into the text where the
error occurred.
- :attr:`end_offset` For syntax errors - the end offset into the text where
the error occurred. Can be `None` if not present.
- :attr:`end_offset` For syntax errors - the offset into the text where the
error occurred. Can be `None` if not present.
- :attr:`msg` For syntax errors - the compiler error message.
"""

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing documentation for the ``exceptions`` attribute of the :class:`traceback.TracebackException` class
0