https://github.com/python/cpython/commit/180b3eb697bf5bb0088f3f35ef2d3675f9fff04f
commit: 180b3eb697bf5bb0088f3f35ef2d3675f9fff04f
branch: main
author: Ole Herman Schumacher Elgesem
<[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-07-16T22:59:30+05:30
summary:
fix traceback.FrameSummary docstring by adding end_lineno, colno, and end_colno
(#136716)
files:
M Lib/traceback.py
diff --git a/Lib/traceback.py b/Lib/traceback.py
index a1f175dbbaa421..31aa8695735f2b 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',
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]