From: Ole Herman Schumacher Elgesem <4048546+olehermanse@users.noreply.github.com> Date: Wed, 16 Jul 2025 17:29:30 +0000 (+0200) Subject: fix traceback.FrameSummary docstring by adding end_lineno, colno, and end_colno ... X-Git-Tag: v3.15.0a1~951 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=180b3eb697bf5bb0088f3f35ef2d3675f9fff04f;p=thirdparty%2FPython%2Fcpython.git fix traceback.FrameSummary docstring by adding end_lineno, colno, and end_colno (#136716) --- diff --git a/Lib/traceback.py b/Lib/traceback.py index a1f175dbbaa4..31aa8695735f 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -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',