]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix traceback.FrameSummary docstring by adding end_lineno, colno, and end_colno ...
authorOle Herman Schumacher Elgesem <4048546+olehermanse@users.noreply.github.com>
Wed, 16 Jul 2025 17:29:30 +0000 (19:29 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Jul 2025 17:29:30 +0000 (22:59 +0530)
Lib/traceback.py

index a1f175dbbaa421afcf3494e01607360cae46e05f..31aa8695735f2b1515d8552d3a21c844f32665d7 100644 (file)
@@ -287,6 +287,12 @@ class FrameSummary:
       of code that was running when the frame was captured.
     - :attr:`locals` Either None if locals were not supplied, or a dict
       mapping the name to the repr() of the variable.
+    - :attr:`end_lineno` The last line number of the source code for this frame.
+      By default, it is set to lineno and indexation starts from 1.
+    - :attr:`colno` The column number of the source code for this frame.
+      By default, it is None and indexation starts from 0.
+    - :attr:`end_colno` The last column number of the source code for this frame.
+      By default, it is None and indexation starts from 0.
     """
 
     __slots__ = ('filename', 'lineno', 'end_lineno', 'colno', 'end_colno',