summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-05 17:02:31 (GMT)
committerGitHub <noreply@github.com>2023-06-05 17:02:31 (GMT)
commitb7fd286c3bc4ee6f2685605b9039098c42514da8 (patch)
treeb53ba2f710eb7cf3f0688954126c05799ddeca9e /Doc
parentcb37100bec64a9313a325151ebef9896e8c76046 (diff)
downloadcpython-b7fd286c3bc4ee6f2685605b9039098c42514da8.zip
cpython-b7fd286c3bc4ee6f2685605b9039098c42514da8.tar.gz
cpython-b7fd286c3bc4ee6f2685605b9039098c42514da8.tar.bz2
[3.10] gh-89412: Add missing attributes (added in 3.10) to traceback module docs (GH-105046) (#105329)
(cherry picked from commit a4f72fa39a9d391c7b931ba1906d81da4ae01949) Co-authored-by: Jakub Kuczys <me@jacken.men>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/traceback.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index ab51cb9..676b9c8 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -259,6 +259,13 @@ 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.
@@ -267,6 +274,13 @@ 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.